This commit is contained in:
26
.gitea/workflows/release.yaml
Normal file
26
.gitea/workflows/release.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: oven-sh/setup-bun@v1
|
||||
with:
|
||||
bun-version: latest
|
||||
- run: |
|
||||
bun install
|
||||
bun run build
|
||||
REPONAME=`basename $GITHUB_REPOSITORY`
|
||||
mkdir .out
|
||||
mv dist .out/$REPONAME
|
||||
cd .out && zip -r $REPONAME.zip $REPONAME
|
||||
- uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
files: |-
|
||||
.out/*.zip
|
||||
Reference in New Issue
Block a user