From e0b8fcc93e68ba703cf3866932be480b79bbafa6 Mon Sep 17 00:00:00 2001 From: kkocdko Date: Wed, 30 Apr 2025 13:45:52 +0900 Subject: [PATCH] infra/workflow: Release a source archive without dev resources --- .github/workflows/release.yml | 20 ++++++++++++++++++++ CONTRIBUTORS | 1 + 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..722320c4 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/CONTRIBUTORS b/CONTRIBUTORS index a57a3457..65126458 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -43,3 +43,4 @@ Jakub Marcowski Thaddeus Crews Benjamin Benson Muite +kkocdko \ No newline at end of file