;ci: release: notes
This commit is contained in:
parent
f7f0a817fe
commit
f0b97ecfb7
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@ -1,11 +1,10 @@
|
|||||||
# Run when a release tag is pushed, creating/updating a draft release.
|
# Create/update a draft release when a release tag is pushed.
|
||||||
# Expects that the main binaries* workflows have been completed first.
|
# Expects that the main binaries* workflows have been completed first.
|
||||||
|
# XXX Triggers too much, eg on pushing VER.99 dev tags; those releases must be deleted manually.
|
||||||
|
|
||||||
name: release
|
name: release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# XXX does not trigger ? seems fixed, https://github.com/orgs/community/discussions/58681
|
|
||||||
# XXX triggers too much, on pushing VER.99 dev tags, that draft release must be deleted manually
|
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '1.*'
|
- '1.*'
|
||||||
@ -23,6 +22,8 @@ jobs:
|
|||||||
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe
|
uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe
|
||||||
# https://github.com/dawidd6/action-download-artifact v3.1.4, unverified so needs to be whitelisted in repo settings
|
# https://github.com/dawidd6/action-download-artifact v3.1.4, unverified so needs to be whitelisted in repo settings
|
||||||
with:
|
with:
|
||||||
|
# all the settings, for reference. The other steps below will be more concise.
|
||||||
|
#
|
||||||
# Optional, GitHub token, a Personal Access Token with `public_repo` scope if needed
|
# Optional, GitHub token, a Personal Access Token with `public_repo` scope if needed
|
||||||
# Required, if the artifact is from a different repo
|
# Required, if the artifact is from a different repo
|
||||||
# Required, if the repo is private a Personal Access Token with `repo` scope is needed or GitHub token in a job where the permissions `action` scope set to `read`
|
# Required, if the repo is private a Personal Access Token with `repo` scope is needed or GitHub token in a job where the permissions `action` scope set to `read`
|
||||||
@ -114,7 +115,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
ls -lRFh artifacts
|
ls -lRFh artifacts
|
||||||
|
|
||||||
# All artifacts are zip files because upload-artifact always zips.
|
# Artifacts are zip files because upload-artifact always zips.
|
||||||
# Here we can switch to more unix-standard gz.
|
# Here we can switch to more unix-standard gz.
|
||||||
- name: Repack unix artifacts with gz
|
- name: Repack unix artifacts with gz
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -130,7 +131,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate github release notes
|
- name: Generate github release notes
|
||||||
# ghrelnotes's argument should be the release's main tag name, eg "1.40".
|
# ghrelnotes's argument should be the release's main tag name, eg "1.40".
|
||||||
# XXX instead, it is more like "refs/tags/hledger-1.40.99", requiring manual fixup.
|
# XXX Currently it is actually like "refs/tags/hledger-1.40.99", requiring manual fixup.
|
||||||
run: |
|
run: |
|
||||||
doc/ghrelnotes ${{ github.ref }} >ghrelnotes.md
|
doc/ghrelnotes ${{ github.ref }} >ghrelnotes.md
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user