Skip to content

Commit

Permalink
ci: deploy only on successful workflow run
Browse files Browse the repository at this point in the history
  • Loading branch information
ferferga committed Nov 14, 2022
1 parent 310e687 commit 722f759
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
uses: actions/upload-artifact@v3.1.1
if: matrix.platform == 'linux/amd64'
with:
name: client
name: frontend
path: |
dist
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ jobs:
cf-pages:
name: CloudFlare Pages 📃
runs-on: ubuntu-latest
if: ${{ (inputs.workflow_run_id && inputs.branch) || github.event.workflow_run.conclusion == 'success' }}

steps:
- name: Download workflow artifact ⬇️
uses: dawidd6/action-download-artifact@v2.24.2
with:
run_id: ${{ inputs.workflow_run_id || github.event.workflow_run.id }}
name: frontend

- name: Publish to Cloudflare Pages 📃
uses: cloudflare/pages-action@v1.1.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Upload artifact (Client) ⬆️💻
uses: actions/upload-artifact@v3.1.1
with:
name: client
name: frontend
path: |
dist
Expand Down

0 comments on commit 722f759

Please sign in to comment.