diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 15c154d..3c89ce0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,7 +8,7 @@ on: jobs: build: - name: Build website + name: Build & Deploy runs-on: ubuntu-latest steps: - name: Checkout code diff --git a/.github/workflows/test_build.yml b/.github/workflows/test_build.yml new file mode 100644 index 0000000..df4cd8c --- /dev/null +++ b/.github/workflows/test_build.yml @@ -0,0 +1,24 @@ +name: Test Website Build + +on: + pull_request: + branches: + - src + workflow_dispatch: + +jobs: + build: + name: Test Build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Build site + uses: getnikola/nikola-action@v3 + with: + dry_run: true + - name: Upload site artifacts + uses: actions/upload-artifact@v2 + with: + name: output + path: output/