Skip to content

Commit

Permalink
cd: change github token value (#103)
Browse files Browse the repository at this point in the history
* cd: change github token value

* cd: add on workflow run
  • Loading branch information
Fingertips18 authored Jan 18, 2025
1 parent dc1405a commit 7b8282d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -43,5 +46,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
retention-days: 1
path: ./dist
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Portfolio - Deploy

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

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

steps:
- name: Checkout Code
Expand All @@ -17,7 +22,7 @@ jobs:
with:
name: dist
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ secrets.GH_PAT }}

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

0 comments on commit 7b8282d

Please sign in to comment.