infra/workflow: Release a source archive without dev resources

This commit is contained in:
kkocdko 2025-04-30 13:45:52 +09:00 committed by Hermet Park
parent 37cffba620
commit e0b8fcc93e
2 changed files with 21 additions and 0 deletions

20
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Release
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: "thorvg"
- name: Create source archive
run: |
rm -rf ./thorvg/.git* ./thorvg/res
tar -I "gzip -9" -cf thorvg.tar.gz thorvg
- name: Upload to release
uses: softprops/action-gh-release@v2
with:
files: thorvg.tar.gz

View file

@ -43,3 +43,4 @@ Jakub Marcowski <chubercikbattle@gmail.com>
Thaddeus Crews <repiteo@outlook.com> Thaddeus Crews <repiteo@outlook.com>
Benjamin <benjaminhalko@hotmail.com> Benjamin <benjaminhalko@hotmail.com>
Benson Muite <benson_muite@emailplus.com> Benson Muite <benson_muite@emailplus.com>
kkocdko <kkocdko@gmail.com>