1
0
mirror of https://github.com/Damillora/Yuika synced 2024-11-14 14:07:31 +00:00

chore: experiment with deployment to blog

This commit is contained in:
Damillora 2021-04-14 20:37:26 +07:00
parent 9f72b03781
commit b0fba2eeae

View File

@ -11,7 +11,21 @@ jobs:
- run: yarn install - run: yarn install
- run: yarn build - run: yarn build
- name: Release - name: Release
if: github.ref == 'refs/heads/master'
env: env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release 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"