Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Merge pull request #6 from AkihiroSuda/dev #10

Merge pull request #6 from AkihiroSuda/dev

Merge pull request #6 from AkihiroSuda/dev #10

Workflow file for this run

name: Release
on:
push:
branches:
- 'master'
tags:
- '20*' # e.g., 2023.01+dfsg-2
pull_request:
branches:
- 'master'
jobs:
release:
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- run: "./extract.sh"
- run: cat _artifacts/SHA256SUMS
- run: (cd _artifacts; sha256sum SHA256SUMS)
- name: "Prepare the release note"
run: |
shasha=$(sha256sum _artifacts/SHA256SUMS | awk '{print $1}')
cat <<-EOF | tee /tmp/release-note.txt
The license (GPL-2.0) is included in the \`*.orig.tar.gz\` source archive.
- - -
The binaries were built automatically on GitHub Actions.
The build log is available for 90 days: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
The sha256sum of the SHA256SUMS file itself is \`${shasha}\` .
EOF
- name: "Create release"
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/20')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF##*/}"
gh release create -F /tmp/release-note.txt --draft --title "${tag}" "${tag}" _artifacts/*