mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 18:26:34 +02:00
👷 Add trigger to deploy on version release
This commit is contained in:
parent
0d805c8316
commit
e0dfb527ab
1 changed files with 6 additions and 0 deletions
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
@ -12,11 +12,17 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Trigger deploy to production
|
||||
run: |
|
||||
curl -X POST -d {} ${{ secrets.DEPLOY_HOOK }}}
|
||||
|
||||
- name: Extract body from changelog
|
||||
run: |
|
||||
NEW_VERSION=$(echo '${{ github.ref }}' | sed 's/refs\/tags\/v//')
|
||||
echo $NEW_VERSION
|
||||
sed -n -e "/## ${NEW_VERSION}/,/<a/ p" ./CHANGELOG.md | sed -e '1,2d' | sed -e '$d' | sed -e '$d' > extractedBody.md
|
||||
|
||||
- name: Create Release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
|
|
Loading…
Add table
Reference in a new issue