diff --git a/README.md b/README.md index a4dfcf9..c5d1a43 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ In your repository **Settings > Actions > General**, in Workflow permissions, ma This example will build and deploy to gh-pages on push to the main branch. -``` +```yml name: Zola on GitHub Pages on: @@ -41,15 +41,15 @@ jobs: This example will build and deploy to gh-pages branch on a push to the main branch, and it will build only on pull requests. -``` +```yml name: Zola on GitHub Pages on: push: branches: - - main + - main pull_request: - + jobs: build: runs-on: ubuntu-latest @@ -57,7 +57,7 @@ jobs: steps: - name: Checkout main uses: actions/checkout@v4 - - name: Build only + - name: Build only uses: shalzz/zola-deploy-action@v0.19.2 env: BUILD_DIR: docs @@ -65,7 +65,7 @@ jobs: 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/main'