28 lines
592 B
YAML
28 lines
592 B
YAML
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: https://gitea.com/actions/release-action@main
|
|
with:
|
|
files: |-
|
|
bin/**
|
|
api_key: '${{secrets.RELEASE_TOKEN}}'
|