Skip to content

Commit

Permalink
ci: Update release workflow
Browse files Browse the repository at this point in the history
- Bump versions to `v3`
- Replace deploy step
  • Loading branch information
LucJosin committed Sep 19, 2023
1 parent 931b471 commit 540d642
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/checkout@v3

- name: Setup Node with yarn caching
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '18'
cache: yarn
Expand All @@ -27,6 +27,13 @@ jobs:
- name: Build NextJs
run: yarn build

- uses: LucJosin/publish-orphan-branch@main
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
ARGS: '--dir "out" --branch "gh-pages" --cname "hawbrary.theproject.id" --nojekyll "yes"'
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
publish_branch: gh-pages
cname: hawbrary.theproject.id
enable_jekyll: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'

0 comments on commit 540d642

Please sign in to comment.