mirror of
https://github.com/kou029w/http-echo.git
synced 2025-01-18 16:08:13 +00:00
create sync-glitch action
This commit is contained in:
parent
79fa8ca0be
commit
ba5bdc8e09
1 changed files with 21 additions and 0 deletions
21
.github/workflows/sync-glitch.yml
vendored
Normal file
21
.github/workflows/sync-glitch.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: sync-glitch
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
jobs:
|
||||
main:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- run: echo "::set-env name=YARN_CACHE_DIR::$(yarn cache dir)"
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ env.YARN_CACHE_DIR }}
|
||||
key: yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: yarn-
|
||||
- run: yarn
|
||||
- run: echo "::set-env name=GH_REPO::${GITHUB_REPOSITORY}"
|
||||
- run: yarn sync-glitch
|
||||
env:
|
||||
GLITCH_PROJECT_ID: "${{ secrets.GLITCH_PROJECT_ID }}"
|
||||
GLITCH_TOKEN: "${{ secrets.GLITCH_TOKEN }}"
|
Loading…
Add table
Reference in a new issue