mirror of
https://github.com/kou029w/http-echo.git
synced 2025-01-19 08:28:03 +00:00
22 lines
622 B
YAML
22 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 }}"
|