diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 94fa5ad..0abef3d 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -3,6 +3,8 @@ name: Deploy the website to Github Pages on: push: branches: ["zine", "main"] + pull_request: + workflow_dispatch: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: @@ -20,16 +22,11 @@ concurrency: cancel-in-progress: true jobs: - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} - runs-on: ubuntu-latest + build: steps: - uses: actions/checkout@v4 with: fetch-depth: 0 # Change if you need git info - - name: Setup Zine uses: kristoff-it/setup-zine@v1 with: @@ -38,6 +35,14 @@ jobs: - name: Build run: zine release + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + if: github.event_name != 'pull_request' + steps: - name: Setup Pages uses: actions/configure-pages@v5 diff --git a/assets/404.html b/assets/404.html index 2fcdc3e..3749da8 100644 --- a/assets/404.html +++ b/assets/404.html @@ -2,32 +2,14 @@
-the page you are looking for not avaible!
+ +