Skip to content

Commit a488b9b

Browse files
committed
feat(cd): auto-deploy
1 parent 80f0d11 commit a488b9b

File tree

2 files changed

+23
-150
lines changed

2 files changed

+23
-150
lines changed

.github/workflows/cd.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CD
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
trigger_deploy:
14+
name: Dispatch deploy to mwp
15+
runs-on: ubuntu
16+
if: (github.event.client_payload.pull_request.head.ref || github.ref) == 'refs/heads/main'
17+
steps:
18+
- name: Dispatch deploy event to mwp
19+
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0
20+
with:
21+
repository: matoous/mwp
22+
token: ${{ secrets.GH_ACTIONS_PAT }}
23+
event-type: deploy

SUMMARY.md

-150
This file was deleted.

0 commit comments

Comments
 (0)