Add release workflow to automate package distribution
All checks were successful
/ serve (push) Successful in 14s
All checks were successful
/ serve (push) Successful in 14s
This commit is contained in:
parent
7a57a986bf
commit
b9b97040d1
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/release.yaml
Normal file
24
.forgejo/workflows/release.yaml
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue