Files
simple-chats/.gitea/workflows/release.yaml
0nepeop1e 676abc73ac
Some checks failed
release / release (push) Failing after 1m13s
fix build script
2024-06-12 17:09:30 +08:00

32 lines
696 B
YAML

name: release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup go
uses: actions/setup-go@v5
with:
go-version: '>=1.20.1'
- 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: |-
out/**
api_key: '${{secrets.RELEASE_TOKEN}}'