1
0
Fork 0
mirror of https://github.com/kou029w/http-echo.git synced 2025-01-18 16:08:13 +00:00
http-echo/.github/workflows/sync-glitch.yml

21 lines
622 B
YAML

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 }}"