diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1bb8bd8..b70aa6c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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"' \ No newline at end of file + 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' \ No newline at end of file