Skip to content

Commit

Permalink
ci: update deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed Mar 17, 2023
1 parent aca53f1 commit 46d3768
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
if: ${{ !env.ACT }}
with:
fetch-depth: 0

- name: Get Next Version
id: semver
uses: ietf-tools/semver-action@v1
if: ${{ !env.ACT }}
with:
token: ${{ github.token }}
branch: main

- name: Create Draft Release
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@v1.12.0
if: ${{ !env.ACT }}
with:
prerelease: true
Expand All @@ -44,18 +44,19 @@ jobs:

- name: Create Release
if: ${{ !env.ACT }}
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@v1.12.0
with:
allowUpdates: true
draft: false
makeLatest: true
tag: ${{ steps.semver.outputs.next }}
name: ${{ steps.semver.outputs.next }}
body: ${{ steps.changelog.outputs.changes }}
token: ${{ github.token }}

- name: Create Release (Major-only)
if: ${{ !env.ACT }}
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@v1.12.0
with:
allowUpdates: true
draft: false
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ jobs:
tag: ${{ github.ref_name }}

- name: Create Release
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@v1.12.0
with:
allowUpdates: true
draft: false
makeLatest: true
name: ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changes }}
token: ${{ github.token }}
Expand Down Expand Up @@ -103,10 +104,11 @@ jobs:
writeToFile: false

- name: Create Release
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@v1.12.0
with:
allowUpdates: true
draft: true
makeLatest: true
name: ${{ github.ref_name }}
body: ${{ steps.changelog.outputs.changes }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 46d3768

Please sign in to comment.