Skip to content

Commit

Permalink
ci: change release steps to match docs of conventional changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehmcc committed Jul 29, 2024
1 parent 3256f00 commit 83279cb
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build-on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ jobs:
- name: Clone repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
fetch-depth: 0

# Changelog time!
- name: Conventional Changelog Action
uses: TriPSs/conventional-changelog-action@v5
with:
github-token: ${{ secrets.github_token }}
skip-git-pull: "true"

# Get the dependencies going
- name: Set up Flutter
Expand Down Expand Up @@ -72,10 +73,15 @@ jobs:
cp build/app/outputs/apk/release/*.apk ./outputs/
# Create release
- name: Create a release with the APK.
uses: ncipollo/release-action@v1
- name: Create Release
uses: actions/create-release@v1
if: ${{ steps.changelog.outputs.skipped == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}

# Now upload those assets
- name: Upload release assets
Expand Down

0 comments on commit 83279cb

Please sign in to comment.