diff --git a/.github/workflows/build_page.yaml b/.github/workflows/build_page.yaml new file mode 100644 index 0000000..632fdaa --- /dev/null +++ b/.github/workflows/build_page.yaml @@ -0,0 +1,39 @@ +name: GH Actions CI +on: + push: + branches: + - main + pull_request: + branches: + - main + +concurrency: + # Probably overly cautious group naming. + # Commits to develop will cancel each other, but PRs will only cancel + # commits within the same PR + group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}" + cancel-in-progress: true + +defaults: + run: + shell: bash -l {0} + +jobs: + # Build job + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + id: pages + uses: actions/configure-pages@v5 + - name: Build with Jekyll + uses: actions/jekyll-build-pages@v1 + with: + source: ./ + destination: ./_site + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + retention-days: "1"