2021-04-14 10:27:50 +00:00
|
|
|
name: CI
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-16.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '14'
|
|
|
|
- run: yarn install
|
2021-04-14 10:45:30 +00:00
|
|
|
- run: yarn build
|
2021-04-14 10:27:50 +00:00
|
|
|
- name: Release
|
2021-04-14 13:37:26 +00:00
|
|
|
if: github.ref == 'refs/heads/master'
|
2021-04-14 10:27:50 +00:00
|
|
|
env:
|
|
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
run: npx semantic-release
|
2021-04-14 13:55:21 +00:00
|
|
|
- if: github.ref == 'refs/heads/nanaomoe'
|
|
|
|
run: yarn zip
|
2021-04-14 13:37:26 +00:00
|
|
|
- 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"
|