Skip to content

Commit

Permalink
cd(artifact): add run-id and github-token
Browse files Browse the repository at this point in the history
  • Loading branch information
Fingertips18 committed Jan 18, 2025
1 parent 800873e commit 6b1cc41
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
name: Portfolio - Deploy

on:
workflow_run:
workflows: ["Portfolio - Build"]
types:
- completed
branches:
- main
workflow_dispatch:

jobs:
deploy:
name: Deploy Application
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}

steps:
- name: Checkout Code
Expand All @@ -23,7 +16,8 @@ jobs:
uses: actions/download-artifact@v4
with:
name: dist
path: dist
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Node
uses: actions/setup-node@v4
Expand Down

0 comments on commit 6b1cc41

Please sign in to comment.