mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
checkout@v2 uses deprecated Node.js 12. See: https://discourse.julialang.org/t/node-js-12-actions-deprecation-warning-on-github/88718
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@v3
|
|
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
|