Skip to content

Commit

Permalink
fix: deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchandev authored Oct 14, 2024
1 parent 7c2f209 commit 894b4af
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Web Deploy
name: Trigger Deploy Workflow

on:
push:
Expand All @@ -10,23 +10,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Install Dependencies
run: npm install

- name: Build Project
run: npm run build

- name: Trigger Deploy Workflow in Another Repo
- name: Trigger Deploy
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GIT_ACCESS_TOKEN }}
repository: team-b1nd/dodam-web-deploy-config
token: ${{ secrets.GIT_ACCESS_TOKEN }
repository: team-b1nd/dodam-web-deploy-config
event-type: trigger-deploy
client-payload: |
{
"source_directory": "./build",
"repo_name": "${{ github.repository }}",
"branch": "${{ github.ref_name }}",
"destination_directory": "/dodam/myinfo"
}

0 comments on commit 894b4af

Please sign in to comment.