From b0fba2eeae3e7acbe2a3939a10e5e9d9d71b6157 Mon Sep 17 00:00:00 2001 From: Damillora Date: Wed, 14 Apr 2021 20:37:26 +0700 Subject: [PATCH] chore: experiment with deployment to blog --- .github/workflows/workflow.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 6084e22..3d9d77a 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -11,7 +11,21 @@ jobs: - run: yarn install - run: yarn build - name: Release + if: github.ref == 'refs/heads/master' env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }} run: npx semantic-release + - name: Prepare for deployment + if: github.ref == 'refs/heads/nanaomoe' + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GH_TOKEN: ${{ secrets.GH_TOKEN }} + run: npx semantic-release --publish false + - name: Deploy Ghost Theme + uses: TryGhost/action-deploy-theme@v1.4.0 + if: github.ref == 'refs/heads/nanaomoe' + with: + api-url: ${{ secrets.GHOST_ADMIN_API_URL }} + api-key: ${{ secrets.GHOST_ADMIN_API_KEY }} + file: "dist/yuika.zip"