Skip to content

Commit

Permalink
refactor :: workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ftery0 committed Oct 18, 2024
1 parent 964fde4 commit f85dc5f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 24 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Trigger Web Deploy

on:
push:
branches:
- master

pull_request:
branches:
- master

jobs:
trigger-deploy:
runs-on: ubuntu-latest

env:
PR_TITLE: ${{ github.event.pull_request.title || '' }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message || '' }}
FINAL_TITLE: ${{ github.event.pull_request.title || github.event.head_commit.message }}

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

- name: Trigger Deploy
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.GIT_ACCESS_TOKEN }}
repository: team-b1nd/web-deploy-config
event-type: trigger-deploy
client-payload: |
{
"repo_name": "${{ github.repository }}",
"branch": "${{ github.ref }}",
"source_directory": "./build",
"project_name": "dodam",
"destination_directory": "/myinfo",
"config_secret": "${{ secrets.CONFIG_JSON }}",
"title": "${{ env.FINAL_TITLE }}"
}
24 changes: 0 additions & 24 deletions .github/workflows/main.yml

This file was deleted.

0 comments on commit f85dc5f

Please sign in to comment.