Add release job.

This commit is contained in:
Jordan Bancino 2024-09-21 16:23:19 -04:00
parent 59e3a6d3e2
commit 3304f8c08f
Signed by: jordan
SSH key fingerprint: SHA256:KZSFf6aBlTjUn5fy3MH8uzqClGOnUaijIDirZKJsEsY
3 changed files with 41 additions and 2 deletions

View file

@ -1,6 +1,6 @@
name: Compile Telodendria name: Compile Telodendria
run-name: Compile Telodendria on ${{ forgejo.actor }} run-name: Compile Telodendria on ${{ forgejo.actor }}
on: [push] on: [push, pull_request]
jobs: jobs:
"Compile Telodendria": "Compile Telodendria":

View file

@ -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

@ -1 +1 @@
Subproject commit f7c51ee019c0cffdc200a4fd4f82ce7cd6e89d61 Subproject commit 63bd8791019cfaf7b782c4600464d8cd9240351c