From f084195b0d3d04326894812ba2505490b4ee996e Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Sat, 20 Jan 2024 13:57:53 +0000 Subject: [PATCH] fix: simplify --- .github/workflows/deploy.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b7e92d2..8f2b6b9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,17 +1,13 @@ name: deploy run-name: 🚀 Deploy + on: workflow_run: - workflows: ["build"] - branches: ["main", "release/*"] - types: - - completed - -env: - DEPLOY_PREVIEW: ${{ github.event.workflow_run.event == 'pull_request' }} - ARTIFACT_NAME: "build-artifact-${{ github.sha }}" - + workflows: + - build + types: + - completed jobs: deploy: @@ -30,12 +26,12 @@ jobs: id-token: write steps: - - name: Deploy to GitHub Pages + - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 with: - artifact_name: ${{ env.ARTIFACT_NAME}} - preview: ${{ env.DEPLOY_PREVIEW }} + artifact_name: "build-artifact-${{ github.sha }}" + preview: false - name: Get the URL for the deployment run: echo "${{ steps.deployment.outputs.page_url }}" \ No newline at end of file