fix ci
This commit is contained in:
parent
cf49f2b065
commit
e167400531
|
@ -84,6 +84,35 @@ jobs:
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
shm-size: 2g
|
shm-size: 2g
|
||||||
ulimit: core=0:0
|
ulimit: core=0:0
|
||||||
|
artifacts:
|
||||||
|
name: Build artifacts
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: node:16-bullseye
|
||||||
|
# 持久化工具目录
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: https://gh.huoxue.store/actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: setup go
|
||||||
|
uses: https://github.com/actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '1.20'
|
||||||
|
- name: Fetch all tags
|
||||||
|
run: git fetch --force --tags
|
||||||
|
- name: Run GoReleaser
|
||||||
|
uses: https://huoxue.link:12300/huoxue1/goreleaser-action@master
|
||||||
|
with:
|
||||||
|
version: latest
|
||||||
|
args: build --snapshot --timeout 5h30m --clean
|
||||||
|
env:
|
||||||
|
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
||||||
|
- name: upload-artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: study_xxqg
|
||||||
|
path: dist/*/*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue