Skip to content

Commit

Permalink
ci(prerelease): rename prerelease package
Browse files Browse the repository at this point in the history
  • Loading branch information
uZer committed Jun 21, 2024
1 parent 9c2ba7a commit b94356a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/release-pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v4
with:
# checkout merge request HEAD instead of merge commit
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Get Next Version
Expand All @@ -30,24 +32,29 @@ jobs:
id: short_sha
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT

- name: Update CHANGELOG
id: changelog
uses: requarks/changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Build artifacts
run: make version=${{ steps.semver.outputs.next }}-${{ steps.short_sha.outputs.short_sha }} artifact
run: make version=${{ steps.semver.outputs.next }}-pre-${{ steps.short_sha.outputs.short_sha }} artifact

- name: Create Draft Release
uses: ncipollo/release-action@v1
if: ${{ !env.ACT }}
with:
allowUpdates: true
artifacts: "rf-liquidsoap*.tar.gz"
commit: master
body: ${{ steps.changelog.outputs.changes }}
commit: ${{ github.event.pull_request.head.sha }}
draft: true
generateReleaseNotes: true
makeLatest: false
name: ${{ steps.semver.outputs.next }}-pre
omitBodyDuringUpdate: true
name: ${{ steps.semver.outputs.next }}-pre-${{ github.head_ref }}
prerelease: true
removeArtifacts: true
replacesArtifacts: true
tag: ${{ steps.semver.outputs.next }}-pre
tag: ${{ steps.semver.outputs.next }}-pre-${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
updateOnlyUnreleased: true

0 comments on commit b94356a

Please sign in to comment.