mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig.space.git
synced 2025-12-14 00:36:48 +00:00
Improve deployment workflow
This commit is contained in:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -31,16 +31,12 @@ jobs:
|
|||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Build
|
- name: Build
|
||||||
run: npm run prod
|
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
|
- name: Deploy
|
||||||
if: success() && github.ref == 'refs/heads/master'
|
if: success() && github.ref == 'refs/heads/master'
|
||||||
uses: maxheld83/ghpages@v0.3.0
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
env:
|
with:
|
||||||
BUILD_DIR: dist/
|
publish_dir: ./dist
|
||||||
GH_PAT: ${{ secrets.GH_PAT }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
cname: einundzwanzig.space
|
||||||
|
user_name: 'github-actions[bot]'
|
||||||
|
user_email: 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
|||||||
Reference in New Issue
Block a user