From 2333ad021d4b6668938440f3f89a7caee5febcec Mon Sep 17 00:00:00 2001 From: Lea Date: Mon, 10 Jul 2023 21:11:30 +0200 Subject: [PATCH] Testing CI --- .forgejo/workflows/zip-and-release.yaml | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .forgejo/workflows/zip-and-release.yaml diff --git a/.forgejo/workflows/zip-and-release.yaml b/.forgejo/workflows/zip-and-release.yaml new file mode 100644 index 0000000..87c170f --- /dev/null +++ b/.forgejo/workflows/zip-and-release.yaml @@ -0,0 +1,28 @@ +name: Create zip and upload release + +on: + push: + branches: [master] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@v3 + - name: Create output directory + run: mkdir release + - name: Create resource pack archive + run: | + cd pack + zip -r ../release/ponk.zip . + - name: Generate sha1sum + run: | + sha1sum release/ponk.zip | cut -d " " -f 1 | tr -d '\n' > release/ponk.zip.sha1 + - name: Create and upload release + uses: actions/forgejo-release@v1 + with: + direction: upload + release-dir: release + token: ${{ github.token }} + release-notes: Release triggered by commit ${{ github.sha }} from ${{ github.actor }}