mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-11 07:46:26 -04:00
Resolve deprecation warnings for GitHub actions, see https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
30 lines
590 B
YAML
30 lines
590 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
|
|
run: .github/scripts/changelog.sh > CHANGELOG.md
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
body_path: CHANGELOG.md
|
|
files: forgit-${{github.ref_name}}.tar.gz
|