Skip to content

release 0.5.21

release 0.5.21 #361

Workflow file for this run

name: release
run-name: release ${{inputs.version}}
defaults:
run:
shell: bash
on:
workflow_dispatch:
inputs:
version:
description: Release version; e.g. `0.5.19`. We'll create tag `release/${version}`.
required: true
type: string
jobs:
bundle-ucm:
name: build and bundle ucm
uses: ./.github/workflows/bundle-ucm.yaml
with:
ref: ${{github.ref}}
release:
name: create release
runs-on: ubuntu-20.04
needs:
- bundle-ucm
steps:
- name: make download dir
run: mkdir /tmp/ucm
- name: "download artifacts"
uses: actions/download-artifact@v4
with:
path: /tmp/ucm
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
prev_tag="$( \
gh release view \
--repo unisonweb/unison \
--json tagName -t '{{printf .tagName}}' \
)"
if [ -z "$prev_tag" ]; then echo "No previous release found"; exit 1; fi
echo "Creating a release from these artifacts:"
ls -R /tmp/ucm/**/ucm-*.{zip,tar.gz}
gh release create "release/${{inputs.version}}" \
--repo unisonweb/unison \
--target "${{github.sha}}" \
--generate-notes \
--notes-start-tag "${prev_tag}" \
\
/tmp/ucm/**/ucm-*.{zip,tar.gz}