From ba5bdc8e096d4ef2b88821650a256fbaf24ca108 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Tue, 24 Mar 2020 01:02:27 +0900 Subject: [PATCH] create sync-glitch action --- .github/workflows/sync-glitch.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/sync-glitch.yml diff --git a/.github/workflows/sync-glitch.yml b/.github/workflows/sync-glitch.yml new file mode 100644 index 0000000..80abe10 --- /dev/null +++ b/.github/workflows/sync-glitch.yml @@ -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 }}"