2024-09-21 20:23:19 +00:00
|
|
|
name: Release Telodendria
|
|
|
|
run-name: Release Telodendria on ${{ forgejo.actor }}
|
2024-09-21 20:52:41 +00:00
|
|
|
|
2024-09-21 20:55:55 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
2024-09-21 20:23:19 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
"Release Telodendria":
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [alpine]
|
|
|
|
arch: [aarch64]
|
|
|
|
runs-on: ["${{ matrix.os }}", "${{ matrix.arch }}"]
|
|
|
|
steps:
|
|
|
|
- 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
|
2024-09-21 20:26:57 +00:00
|
|
|
run: git archive --format tar -o release.tar HEAD
|
2024-09-21 20:23:19 +00:00
|
|
|
- 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
|
2024-09-21 20:52:41 +00:00
|
|
|
mkdir release
|
|
|
|
mv release.tar.gz release/Telodendria-$GITHUB_REF_NAME.tar.gz
|
2024-09-21 20:23:19 +00:00
|
|
|
- name: Upload artifact
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2024-09-21 20:52:41 +00:00
|
|
|
name: Telodendria-$GITHUB_REF_NAME.tar.gz
|
|
|
|
path: release/Telodendria-$GITHUB_REF_NAME.tar.gz
|
|
|
|
- name: Publish release
|
2024-09-21 21:03:14 +00:00
|
|
|
uses: actions/forgejo-release@v2
|
2024-09-21 20:52:41 +00:00
|
|
|
with:
|
|
|
|
tag: $GITHUB_REF_NAME
|
|
|
|
title: "Telodendria $GITHUB_REF_NAME"
|
|
|
|
release-dir: release/
|
|
|
|
release-notes: "docs/CHANGELOG.md"
|
|
|
|
direction: upload
|
|
|
|
prerelease: true
|