mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-12 17:20:40 +01:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Release
|
|
on:
|
|
push:
|
|
tags: ['*']
|
|
|
|
jobs:
|
|
"Release":
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out sources
|
|
uses: actions/checkout@v3
|
|
- name: Install build dependencies
|
|
uses: ./.github/actions/install-dependencies
|
|
with:
|
|
build: true
|
|
test: true
|
|
|
|
- name: Build
|
|
uses: ./.github/actions/build
|
|
with:
|
|
minify: lib
|
|
manuals: true
|
|
verify: true
|
|
inline: false
|
|
|
|
- name: Create zipball
|
|
run: bash "${{ github.workspace }}/.github/actions/build/create-zipball.sh"
|
|
|
|
- name: Generate changelog
|
|
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 "file=${output_file}" >> "$GITHUB_OUTPUT"
|
|
echo "title=${output_title}" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Create release
|
|
if: ${{ !env.ACT }}
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
artifacts: "bat-extras-*.zip"
|
|
bodyFile: "${{steps.changelog.outputs.file}}"
|
|
name: "${{steps.changelog.outputs.title}}"
|