bat-extras/.github/workflows/release.yaml

46 lines
1.2 KiB
YAML
Raw Normal View History

name: Release
on:
release: {}
push:
tags: ['*']
jobs:
2023-06-16 01:42:49 +02:00
"Release":
runs-on: ubuntu-latest
steps:
- name: Check out sources
uses: actions/checkout@v3
2023-06-16 01:42:49 +02:00
- name: Install build dependencies
uses: ./.github/actions/install-dependencies
with:
build: true
2023-06-16 02:11:46 +02:00
test: true
2023-06-16 01:42:49 +02:00
- name: Build
uses: ./.github/actions/build
with:
minify: lib
manuals: true
2023-06-16 02:11:46 +02:00
verify: true
2023-06-16 01:42:49 +02:00
inline: false
- name: Create zipball
run: bash "${{ github.workspace }}/.github/actions/build/create-zipball.sh"
- name: Generate changelog
2023-06-16 01:42:49 +02:00
id: changelog
run: |
output_file="release-notes.md"
output_title="Release: $(date '+%Y-%m-%d')"
bash "${{ github.workspace }}/.github/actions/build/create-release-notes.sh" | tee "${output_file}"
echo "::set-output name=file::${output_file}"
echo "::set-output name=title::${output_title}"
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: "bat-extras-*.zip"
bodyFile: "${{steps.changelog.outputs.file}}"
name: "${{steps.changelog.outputs.title}}"