fix: deploy.yml #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Trigger Web Deploy | |
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
trigger-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Ensure Config Directory Exists | |
run: mkdir -p ./src/config | |
- name: Create Config JSON File | |
id: create-json | |
uses: jsdaniell/[email protected] | |
with: | |
name: "config.json" | |
json: ${{ secrets.CONFIG_JSON }} | |
dir: './src/config' | |
- name: Trigger Deploy | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
token: ${{ secrets.GIT_ACCESS_TOKEN }} | |
repository: team-b1nd/dodam-web-deploy-config | |
event-type: trigger-deploy | |
client-payload: | | |
{ | |
"repo_name": "${{ github.repository }}", | |
"branch": "${{ github.ref }}", | |
"source_directory": "./build", | |
"destination_directory": "/dodam/myinfo", | |
"config_secret": "$(cat ./src/config/config.json)" | |
} |