Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
af9da62009 | ||
|
|
1439860599 | ||
|
|
446fe43635 | ||
|
|
0f3752d59c | ||
|
|
0bdfd9cb37 |
@@ -1,9 +1,6 @@
|
||||
run-name: Build artifact for ${{gitea.ref_name}} by @${{ gitea.actor }}
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
release:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -41,3 +38,22 @@ jobs:
|
||||
with:
|
||||
name: ${{gitea.ref_name}}
|
||||
path: public/
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- build
|
||||
steps:
|
||||
- name: setup go
|
||||
uses: https://github.com/actions/setup-go@v4
|
||||
with:
|
||||
go-version: '>=1.20.1'
|
||||
- name: Download workflow run artifact
|
||||
uses: actions/download-artifact@v3
|
||||
- name: Tar files
|
||||
run: tar -cvf ${{gitea.ref_name}}.tar -C ${{gitea.ref_name}} .
|
||||
- name: release
|
||||
uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
files: |-
|
||||
${{gitea.ref_name}}.tar
|
||||
api_key: '${{secrets.GITEA_TOKEN}}'
|
||||
|
||||
Reference in New Issue
Block a user