Skip to content

Commit

Permalink
ci: fix deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel authored Nov 16, 2022
1 parent 4eb6fb4 commit 6abaea4
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,54 @@ jobs:
uses: actions/checkout@v2
if: ${{ !env.ACT }}

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

- name: Create Draft Release
uses: ncipollo/release-action@v1
if: ${{ !env.ACT }}
with:
prerelease: true
draft: false
commit: ${{ github.sha }}
tag: ${{ steps.semver.outputs.next }}
name: ${{ steps.semver.outputs.next }}
body: '*pending*'
token: ${{ github.token }}

- name: Update CHANGELOG
if: ${{ !env.ACT }}
id: changelog
uses: ./
uses: requarks/changelog-action@v1
with:
token: ${{ github.token }}
tag: ${{ github.ref_name }}
tag: ${{ steps.semver.outputs.next }}

- name: Create Release
if: ${{ !env.ACT }}
uses: ncipollo/release-action@v1
with:
allowUpdates: true
draft: false
name: ${{ github.ref_name }}
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
with:
allowUpdates: true
draft: false
commit: ${{ github.sha }}
tag: ${{ steps.semver.outputs.nextMajor }}
name: ${{ steps.semver.outputs.nextMajor }}
body: ${{ steps.changelog.outputs.changes }}
token: ${{ github.token }}

Expand Down

0 comments on commit 6abaea4

Please sign in to comment.