Skip to content

Commit

Permalink
👷 Fix version deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftEscape committed Jun 1, 2024
1 parent 050f752 commit 051680b
Showing 1 changed file with 2 additions and 35 deletions.
37 changes: 2 additions & 35 deletions .github/workflows/deployments.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Version Deployment
name: Version Tag Deployment

on:
workflow_dispatch:
Expand Down Expand Up @@ -37,37 +37,4 @@ jobs:
- name: Push tag
run: |
git tag ${{ env.TAG_NAME }}
git push origin ${{ env.TAG_NAME }}
create-draft-release:
needs: push-tag
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Extract the specific version CHANGELOG
id: changelog
run: |
mkdir -p /tmp
($echo ./.github/script/extract_specific_changelog.sh \
--target=${{ env.TARGET }} \
--version=${{ env.VERSION_NUMBER }}) \
> /tmp/body.md
- name: Show CHANGELOG
run: |
cat /tmp/body.md
- name: Create draft release
uses: ncipollo/release-action@v1
with:
tag: ${{ env.TAG_NAME }}
bodyFile: /tmp/body.md
generateReleaseNotes: true
draft: true
prerelease: false
git push origin ${{ env.TAG_NAME }}

0 comments on commit 051680b

Please sign in to comment.