From 3304f8c08f9fea36172660b2ed6219db17b350e4 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sat, 21 Sep 2024 16:23:19 -0400 Subject: [PATCH] Add release job. --- .forgejo/workflows/compile.yaml | 2 +- .forgejo/workflows/release.yaml | 39 +++++++++++++++++++++++++++++++++ Cytoplasm | 2 +- 3 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 .forgejo/workflows/release.yaml diff --git a/.forgejo/workflows/compile.yaml b/.forgejo/workflows/compile.yaml index f423547..85ad6d9 100644 --- a/.forgejo/workflows/compile.yaml +++ b/.forgejo/workflows/compile.yaml @@ -1,6 +1,6 @@ name: Compile Telodendria run-name: Compile Telodendria on ${{ forgejo.actor }} -on: [push] +on: [push, pull_request] jobs: "Compile Telodendria": diff --git a/.forgejo/workflows/release.yaml b/.forgejo/workflows/release.yaml new file mode 100644 index 0000000..9bd4069 --- /dev/null +++ b/.forgejo/workflows/release.yaml @@ -0,0 +1,39 @@ +name: Release Telodendria +run-name: Release Telodendria on ${{ forgejo.actor }} +# on: +# tags: +# - 'v*' +# For testing only: +on: [push] + +jobs: + "Release Telodendria": + strategy: + matrix: + os: [alpine] + arch: [aarch64] + runs-on: ["${{ matrix.os }}", "${{ matrix.arch }}"] + steps: + - name: Determine release tag + id: tag + run: echo ::set-output name=TAG:${GITHUB_REF#refs/tags/} + - name: Check out repository + uses: actions/checkout@v4 + with: + submodules: true + - name: Archive submodules + run: git submodule foreach --recursive 'git archive --format tar --prefix=$displaypath/ -o submodule.tar HEAD' + - name: Archive repository + run: git archive --format -tar -o release.tar HEAD + - name: Produce release archive + run: | + TOPDIR=$(pwd) git submodule --quiet foreach --recursive 'cd $TOPDIR; tar --concatenate --file=release.tar $displaypath/submodule.tar; rm -fv $displaypath/submodule.tar' + gzip release.tar + mv release.tar.gz Telodendria-$RELEASE_TAG.tar.gz + env: + RELEASE_TAG: ${{steps.tag.outputs.TAG}} + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: Release + path: Telodendria-${{steps.tag.outputs.TAG}}.tar.gz diff --git a/Cytoplasm b/Cytoplasm index f7c51ee..63bd879 160000 --- a/Cytoplasm +++ b/Cytoplasm @@ -1 +1 @@ -Subproject commit f7c51ee019c0cffdc200a4fd4f82ce7cd6e89d61 +Subproject commit 63bd8791019cfaf7b782c4600464d8cd9240351c