1

CI upgrades

This commit is contained in:
Evan Pratten 2022-12-01 11:21:47 -05:00
parent 2f39b3a1c5
commit b54e6b9806

View File

@ -1,15 +1,10 @@
name: Bundle Website
on: push
on:
push:
branches:
- master
name: Build and publish site
jobs: jobs:
build-bundle-deploy: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -23,7 +18,7 @@ jobs:
- name: Compile assets - name: Compile assets
run: make run: make
- name: Build - name: Build
uses: TonySpegel/zola-build-action@v1 uses: TonySpegel/zola-build-action@v1
env: env:
@ -32,6 +27,11 @@ jobs:
- name: Disable Jekyll - name: Disable Jekyll
run: sudo touch ./public/.nojekyll run: sudo touch ./public/.nojekyll
deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
steps:
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
if: success() if: success()
uses: crazy-max/ghaction-github-pages@v2 uses: crazy-max/ghaction-github-pages@v2
@ -40,4 +40,4 @@ jobs:
build_dir: public build_dir: public
fqdn: ewpratten.com fqdn: ewpratten.com
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}