From 9a7959a16949e620a22e74f81c10cb7ce3b76924 Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Wed, 3 Jan 2024 11:52:16 -0600 Subject: [PATCH] Pin `actions/upload-pages-artifact` to v2 (#38) * fix: upload step * revert `upload-pages-artifact` to v2 * fix: automate release action --- .github/workflows/release.yml | 2 +- action.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 841d70b..1cb0f25 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,7 @@ name: Release on: release: - types: [edited] + types: [released, edited] workflow_dispatch: inputs: TAG_NAME: diff --git a/action.yml b/action.yml index cb1b100..6609369 100644 --- a/action.yml +++ b/action.yml @@ -92,6 +92,7 @@ runs: run: $PACKAGE_MANAGER run build - name: Upload Pages Artifact - uses: actions/upload-pages-artifact@v3 + # Must use v2 to avoid requiring `actions/deploy-pages@v4` or newer + uses: actions/upload-pages-artifact@v2 with: - path: "${{ inputs.path }}/dist" + path: "${{ inputs.path }}/dist/"