mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-12 00:06:18 -04:00
33 lines
693 B
YAML
33 lines
693 B
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '**'
|
|
|
|
jobs:
|
|
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Create Package
|
|
run: tar -czf forgit-${{github.ref_name}}.tar.gz --exclude LICENSE --exclude README.md *
|
|
|
|
- name: Generate Changelog
|
|
id: changelog
|
|
run: .github/scripts/changelog.sh > CHANGELOG.md
|
|
continue-on-error: true
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v2
|
|
if: steps.changelog.outcome == 'success'
|
|
with:
|
|
body_path: CHANGELOG.md
|
|
files: forgit-${{github.ref_name}}.tar.gz
|