Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hooozen committed Jul 4, 2023
1 parent 4a6179b commit e2e698f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main # default branch

jobs:
pages:
generate:
runs-on: ubuntu-22.04
permissions:
contents: write
Expand Down Expand Up @@ -34,17 +34,21 @@ jobs:
run: npm run build-tranquility
- name: Build academic
run: npm run build-academic

pages:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

- name: Checkout gh-pages
uses: actions/checkout@v3
with:
ref: gh-pages

- name: Move CNAME to gh-pages
run: |
git checkout gh-pages
Expand Down

0 comments on commit e2e698f

Please sign in to comment.