diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3d36286e377..317a12991bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,16 +31,12 @@ jobs: run: npm ci - name: Build run: npm run prod - - name: Predeploy - if: success() && github.ref == 'refs/heads/master' - run: | - # https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/ - touch dist/.nojekyll - # https://help.github.com/en/articles/managing-a-custom-domain-for-your-github-pages-site - echo einundzwanzig.space > dist/CNAME - name: Deploy if: success() && github.ref == 'refs/heads/master' - uses: maxheld83/ghpages@v0.3.0 - env: - BUILD_DIR: dist/ - GH_PAT: ${{ secrets.GH_PAT }} + uses: peaceiris/actions-gh-pages@v3 + with: + publish_dir: ./dist + github_token: ${{ secrets.GITHUB_TOKEN }} + cname: einundzwanzig.space + user_name: 'github-actions[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com'