Skip to content

Merge pull request #218 from I2PC/release-3.24.12 #3

Merge pull request #218 from I2PC/release-3.24.12

Merge pull request #218 from I2PC/release-3.24.12 #3

Workflow file for this run

name: Release new version
on:
push:
branches: [ master ]
jobs:
generate-new-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@main
- name: Retrieve tag name, release name & changelog
run: |
echo "TAG_NAME=$(python ./scripts/version.py)" >> $GITHUB_OUTPUT
awk '/## Release/{if (p) exit; p=1} p' CHANGELOG.md | tail -n +2 > latest_changelog.md
echo "RELEASE_NAME=$(python ./scripts/version.py --keep-format)" >> $GITHUB_OUTPUT
id: variables
- name: Generate tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.variables.outputs.TAG_NAME }}
- name: Create a GitHub release
uses: ncipollo/release-action@main
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.variables.outputs.RELEASE_NAME }}
bodyFile: latest_changelog.md