Add ci
Some checks failed
/ build-artifacts (autoinstall) (push) Has started running
/ build-artifacts (autostart-manage) (push) Has been cancelled
/ upload-release (push) Has been cancelled

This commit is contained in:
Tobias Reisinger 2024-01-12 02:05:28 +01:00
parent 8eef9ffb24
commit 031bb45eeb
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE

View file

@ -0,0 +1,47 @@
on:
push:
tags:
- v**
jobs:
build-artifacts:
runs-on: docker
strategy:
matrix:
tool:
- autoinstall
- autostart-manage
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
- id: install-dependencies
run: |
apt update
apt install -y make ruby
gem install bashly
shell: bash
- id: run-bashly
run: |
echo "${{ matrix.tool }}" > .target
make generate
shell: bash
- uses: https://code.forgejo.org/actions/upload-artifact@v3
with:
name: ${{ matrix.tool }}
path: ${{ github.workspace }}/output/${{ matrix.tool }}
upload-release:
runs-on: docker
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
- uses: https://code.forgejo.org/actions/download-artifact@v3
with:
path: /tmp/artifacts-in
merge-multiple: true # broken "collect-artifacts" used as workaround
- id: collect-artifacts
run: |
mkdir /tmp/artifacts-out
mv $(find /tmp/artifacts-in -type f) /tmp/artifacts-out
shell: bash
- uses: https://code.forgejo.org/actions/forgejo-release@v1
with:
direction: upload
release-dir: /tmp/artifacts-out
token: ${{ github.token }}