Skip to content

Merge pull request #65 from moegi-design/dependabot/npm_and_yarn/vite… #100

Merge pull request #65 from moegi-design/dependabot/npm_and_yarn/vite…

Merge pull request #65 from moegi-design/dependabot/npm_and_yarn/vite… #100

Workflow file for this run

name: Build & Push & Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: pnpm install
- run: pnpm run build
- name: GScan Theme
run: pnpm run test
- name: push to dist branch
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./dist
publish_branch: dist
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: dist
- name: Deploy Ghost Theme
uses: TryGhost/[email protected]
with:
api-url: ${{ secrets.GHOST_ADMIN_API_URL }}
api-key: ${{ secrets.GHOST_ADMIN_API_KEY }}