Skip to content

Commit

Permalink
Add artifact upload to site build.
Browse files Browse the repository at this point in the history
When the build was triggered by a push to the main branch upload the
generated output as a GitHub Actions artifact in order to facilitate
deployment.
  • Loading branch information
nuclearsandwich committed Aug 15, 2024
1 parent 45cbfed commit dd24c6f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---
name: CI
on:
push:
branches: ["main"]
Expand All @@ -13,3 +15,11 @@ jobs:
- name: nanoc compile
run: |
earthly --ci +build
upload:
runs-on: ubuntu-22.04
if: ${{ github.event_name == "push" }}
needs: compile
steps:
- uses: actions/upload-pages-artifact@v3
with:
path: output

0 comments on commit dd24c6f

Please sign in to comment.