mirror of
https://github.com/Damillora/Yuika
synced 2024-11-14 14:07:31 +00:00
28 lines
796 B
YAML
28 lines
796 B
YAML
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
|
|
- 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
|
|
- if: github.ref == 'refs/heads/nanaomoe'
|
|
run: yarn zip
|
|
- 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"
|