Skip to content

Commit

Permalink
feat(cd): auto-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
matoous committed Mar 6, 2024
1 parent 80f0d11 commit a488b9b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 150 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CD

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
trigger_deploy:
name: Dispatch deploy to mwp
runs-on: ubuntu
if: (github.event.client_payload.pull_request.head.ref || github.ref) == 'refs/heads/main'
steps:
- name: Dispatch deploy event to mwp
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0
with:
repository: matoous/mwp
token: ${{ secrets.GH_ACTIONS_PAT }}
event-type: deploy
150 changes: 0 additions & 150 deletions SUMMARY.md

This file was deleted.

0 comments on commit a488b9b

Please sign in to comment.