Skip to content

Commit

Permalink
fix: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
petertonysmith94 committed Jan 20, 2024
1 parent 08566d9 commit f084195
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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 }}"

0 comments on commit f084195

Please sign in to comment.