Skip to content

ci: add github worflow for creating a release #4

ci: add github worflow for creating a release

ci: add github worflow for creating a release #4

Workflow file for this run

---
name: Pre-release
on:
pull_request:
branches:
- master
jobs:
prerelease:
name: Pre-release
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get Next Version
id: semver
uses: ietf-tools/semver-action@v1
if: ${{ !env.ACT }}
with:
token: ${{ github.token }}
branch: master
- name: Build artifacts
run: make version=${{ steps.semver.outputs.next }}-${{ github.sha }} artifact
- name: Create Draft Release
uses: ncipollo/release-action@v1
if: ${{ !env.ACT }}
with:
allowUpdates: true
artifacts: "rf-liquidsoap*.tar.gz"
body: ${{ steps.changelog.outputs.changes }}
commit: ${{ github.sha }}
draft: true
generateReleaseNotes: true
makeLatest: false
name: ${{ steps.semver.outputs.next }}-pre
prerelease: true
skipIfReleaseExists: true
tag: ${{ steps.semver.outputs.next }}-pre
token: ${{ github.token }}