Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
446fe43635 | ||
|
|
0f3752d59c | ||
|
|
0bdfd9cb37 | ||
|
|
e89366ab61 | ||
|
|
f43f4a74eb | ||
|
|
10fa1dbe50 |
@@ -1,5 +1,6 @@
|
|||||||
run-name: Build artifact for ${{gitea.ref}} by @${{ gitea.actor }}
|
run-name: Build artifact for ${{gitea.ref_name}} by @${{ gitea.actor }}
|
||||||
on:
|
on:
|
||||||
|
release:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
@@ -36,11 +37,25 @@ jobs:
|
|||||||
hugo \
|
hugo \
|
||||||
--gc \
|
--gc \
|
||||||
--minify
|
--minify
|
||||||
- name: 'Tar files'
|
|
||||||
run: tar -cvf ${{gitea.ref}}.tar -C public/ .
|
|
||||||
|
|
||||||
- name: 'Upload Artifact'
|
- name: 'Upload Artifact'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{gitea.ref}}.tar
|
name: ${{gitea.ref_name}}
|
||||||
path: ${{gitea.ref}}.tar
|
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: release
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
${{gitea.ref_name}}
|
||||||
|
api_key: '${{secrets.GITEA_TOKEN}}'
|
||||||
|
|||||||
Reference in New Issue
Block a user