Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1439860599 | ||
|
|
446fe43635 | ||
|
|
0f3752d59c | ||
|
|
0bdfd9cb37 |
@@ -1,9 +1,6 @@
|
|||||||
run-name: Build artifact for ${{gitea.ref_name}} by @${{ gitea.actor }}
|
run-name: Build artifact for ${{gitea.ref_name}} by @${{ gitea.actor }}
|
||||||
on:
|
on:
|
||||||
push:
|
release:
|
||||||
tags:
|
|
||||||
- 'v*'
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -41,3 +38,22 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ${{gitea.ref_name}}
|
name: ${{gitea.ref_name}}
|
||||||
path: public/
|
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