2023-06-15 23:19:00 +02:00
|
|
|
name: Release
|
|
|
|
on:
|
|
|
|
release: {}
|
|
|
|
push:
|
|
|
|
tags: ['*']
|
|
|
|
|
|
|
|
jobs:
|
2023-06-16 01:42:49 +02:00
|
|
|
"Release":
|
2023-06-15 23:19:00 +02:00
|
|
|
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"
|
2023-06-15 23:19:00 +02:00
|
|
|
|
|
|
|
- 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}}"
|