Release mapiproxy version 0.6.3 #7
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: Create release from tag | |
on: | |
push: | |
tags: | |
- v[0-9]* | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
prepare: | |
name: Prepare for release | |
runs-on: ubuntu-latest | |
outputs: | |
mapiproxy_version: ${{ steps.version_number.outputs.mapiproxy_version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Build x helper | |
run: cargo build --example x | |
- name: Determine version number | |
id: version_number | |
run: cargo run --example x -- version mapiproxy_version= >>"$GITHUB_OUTPUT" | |
- name: Verify tag name against version number | |
run: cargo run --example x -- checktag ${{ github.ref_name }} | |
- name: Generate release notes | |
run: cargo run --example x -- relnotes >relnotes.md | |
- name: Store release notes | |
uses: actions/upload-artifact@v4 | |
with: | |
name: relnotes | |
path: relnotes.md | |
if-no-files-found: error | |
build: | |
# note the ./. it's essential | |
uses: ./.github/workflows/create-binaries.yml | |
release: | |
name: Create release | |
permissions: | |
contents: write | |
runs-on: ubuntu-latest | |
needs: [prepare, build] | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v4 | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
merge-multiple: true | |
- run: | | |
ls -R | |
- name: Create release | |
env: | |
GH_TOKEN: ${{ github.token }} | |
run: | | |
test -n "${{ github.ref_name }}" | |
gh release create ${{ github.ref_name }} \ | |
--title 'mapiproxy ${{ needs.prepare.outputs.mapiproxy_version }}' \ | |
--notes-file relnotes.md \ | |
mapiproxy*.tar.gz mapiproxy*.zip | |