Merge pull request #961 from I2PC/agm_fakeAction #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release new version | |
| on: | |
| push: | |
| branches: [ FakeMaster ] | |
| 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=$(./xmipp version --short)" >> $GITHUB_OUTPUT | |
| awk '/## Release/{if (p) exit; p=1} p' CHANGELOG.md > latest_changelog_with_title.md | |
| cat latest_changelog_with_title.md | tail -n +2 > latest_changelog.md | |
| echo "RELEASE_NAME=$(cat latest_changelog_with_title.md | head -n 1 | sed 's/## Release //' | sed 's/^ *//')" >> $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 }} | |
| tag_prefix: '' | |
| - 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 |