From 12efe41dc09043ebfd76e1dfa96ab66ed0cfe967 Mon Sep 17 00:00:00 2001 From: mmcky Date: Tue, 16 Mar 2021 14:01:29 +1100 Subject: [PATCH] add live publish using tag publish* --- .github/workflows/publish.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2cac58543..46129320b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,10 +1,11 @@ -name: Build & Publish to GH Pages +name: Build & Publish to GH-PAGES on: push: - branches: - - main + tags: + - 'publish*' jobs: publish: + if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') runs-on: ubuntu-latest steps: - name: Checkout