Skip to content

Change 'deploy' to publish artifact instead. #3

Change 'deploy' to publish artifact instead.

Change 'deploy' to publish artifact instead. #3

Workflow file for this run

name: develop
on:
push:
paths-ignore:
- 'old/**'
- '**.md'
pull_request:
paths-ignore:
- 'old/**'
- '**.md'
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: test
run: |
yarn install
. script/git/hooks/pre-push
deploy:
runs-on: ubuntu-22.04
needs: test
if: github.ref == 'refs/heads/develop'
steps:
- uses: actions/checkout@v4
- name: build
run: |
yarn install
yarn build-artifact
- name: gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist/artifact/
keep_files: true