diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3f04cc9..7bee8fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,21 +7,6 @@ on: pull_request: jobs: - build: - runs-on: ubuntu-latest - if: github.ref != 'refs/heads/master' - steps: - - name: Checkout main - uses: actions/checkout@v4 - - name: Build only - uses: shalzz/zola-deploy-action@v0.19.2 - env: - BUILD_DIR: public - BUILD_ONLY: true - BUILD_FLAGS: --drafts - # A GitHub token is not necessary when BUILD_ONLY is true - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - build_and_deploy: runs-on: ubuntu-latest if: github.ref == 'refs/heads/master' @@ -31,6 +16,5 @@ jobs: - name: Build and deploy uses: shalzz/zola-deploy-action@v0.19.2 env: - BUILD_DIR: public PAGES_BRANCH: gh-pages GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}