Add release workflow to automate package distribution
All checks were successful
/ serve (push) Successful in 14s

This commit is contained in:
Edgar P. Burkhart 2025-05-17 20:14:28 +02:00
parent 7a57a986bf
commit b9b97040d1
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -0,0 +1,24 @@
on:
push:
tags:
- 'v*'
jobs:
serve:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Prepare files
run: |
mkdir -p /tmp/micromail /tmp/release
cp package.json /tmp/micromail/
cp -r micromail /tmp/micromail/
cd /tmp/micromail
tar -czvf /tmp/release/micromail.tar.gz .
- name: Make release
uses: actions/forgejo-release@v2.6.0
with:
direction: upload
release-dir: /tmp/release
token: ${{ secrets.FORGEJO_TOKEN }}