Update Actions workflows to support deploying to GitHub Pages. #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | ||
name: CI | ||
on: | ||
push: | ||
branches: ["main"] | ||
pull_request: | ||
branches: ["main"] | ||
jobs: | ||
compile: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: earthly/actions-setup@v1 | ||
- name: nanoc compile | ||
run: | | ||
earthly --ci +build | ||
upload: | ||
runs-on: ubuntu-22.04 | ||
if: ${{ github.event_name == "push" }} | ||
Check failure on line 20 in .github/workflows/ci.yaml GitHub Actions / CIInvalid workflow file
|
||
needs: compile | ||
steps: | ||
- uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: output |