From 44a1becc45fbe281c960116f17aa00fce620f12c Mon Sep 17 00:00:00 2001 From: Dennis Reimann Date: Sat, 19 Jun 2021 17:31:49 +0200 Subject: [PATCH] Improve deployment workflow --- .github/workflows/build.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) 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'