From 4393788f9b5778b5814a1c2bf6865124d43737ee Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Wed, 3 Jul 2024 11:39:25 +0200 Subject: [PATCH] fix(ci): publish pages for every commit on main --- .github/workflows/export-mastodon-list.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/export-mastodon-list.yml b/.github/workflows/export-mastodon-list.yml index 9b3b0de..aa0392d 100644 --- a/.github/workflows/export-mastodon-list.yml +++ b/.github/workflows/export-mastodon-list.yml @@ -66,7 +66,7 @@ jobs: - name: Setup Pages uses: actions/configure-pages@v5 - if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main') + if: github.event_name == 'push' && github.ref == 'refs/heads/main' - name: Generate Directory Listings uses: jayanta525/github-pages-directory-listing@v4.0.0 @@ -75,12 +75,12 @@ jobs: - name: Upload artifact uses: actions/upload-pages-artifact@v3 - if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main') + if: github.event_name == 'push' && github.ref == 'refs/heads/main' with: path: export/ - name: Deploy to GitHub Pages id: deployment - if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main') + if: github.event_name == 'push' && github.ref == 'refs/heads/main' uses: actions/deploy-pages@v4 \ No newline at end of file