HG: fix RETURN_VALUES macro to only take single argument (fix #766) #8
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
tags: | |
- 'v*' | |
- '!v*rc*' | |
jobs: | |
package: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Extract version number | |
id: get_version | |
# Skip refs/tags/v | |
run: echo ::set-output name=version::$(echo ${GITHUB_REF:11}) | |
# TODO: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ | |
- name: Create Build Environment | |
run: cmake -E make_directory ${{github.workspace}}/build | |
- name: Configure CMake | |
shell: bash | |
working-directory: ${{github.workspace}}/build | |
run: | | |
cmake $GITHUB_WORKSPACE | |
make package_source | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: mercury ${{ steps.get_version.outputs.version }} | |
body_path: Documentation/CHANGES.md | |
draft: true | |
prerelease: false | |
- name: Upload tarball to release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ${{github.workspace}}/build/mercury-${{ steps.get_version.outputs.version }}.tar.bz2 | |
asset_name: mercury-${{ steps.get_version.outputs.version }}.tar.bz2 | |
asset_content_type: application/x-bzip2 |