From fb5e91d074cf8dd6756605dcc156a4db4a376cb0 Mon Sep 17 00:00:00 2001 From: Alex Dzwonchyk Date: Tue, 20 Aug 2024 10:19:20 -0400 Subject: [PATCH 1/2] Update release workflow to only publish on release --- .github/workflows/gh-pages-deploy.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gh-pages-deploy.yml b/.github/workflows/gh-pages-deploy.yml index 9d80f2fa..8abc8466 100644 --- a/.github/workflows/gh-pages-deploy.yml +++ b/.github/workflows/gh-pages-deploy.yml @@ -1,9 +1,8 @@ name: Deploy to github pages on: - workflow_dispatch: - push: - branches: - - main + release: + types: + - published # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: From 1461716bb16d6954eebe11fa3f2ecad13888b873 Mon Sep 17 00:00:00 2001 From: Alex Dzwonchyk Date: Tue, 20 Aug 2024 10:24:08 -0400 Subject: [PATCH 2/2] Update syntax --- .github/workflows/gh-pages-deploy.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/gh-pages-deploy.yml b/.github/workflows/gh-pages-deploy.yml index 8abc8466..7f82a30e 100644 --- a/.github/workflows/gh-pages-deploy.yml +++ b/.github/workflows/gh-pages-deploy.yml @@ -1,8 +1,7 @@ name: Deploy to github pages on: release: - types: - - published + types: [published] # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: