fix ci
CI / Build binary CI (push) Waiting to run
Details
CI / Build binary CI (push) Waiting to run
Details
This commit is contained in:
parent
c16fb8c252
commit
0519732280
|
@ -23,9 +23,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: setup go
|
- name: setup go
|
||||||
uses: https://gh.huoxue.store/actions/setup-go@v4
|
wget https://studygolang.com/dl/golang/go1.21.3.linux-amd64.tar.gz
|
||||||
with:
|
tar -xzf ./go1.21.3.linux-amd64.tar.gz -C /usr/local
|
||||||
go-version: '1.20'
|
echo 'export GOROOT=/usr/local/go' >> $GITHUB_ENV
|
||||||
|
ln -s /usr/local/go/bin/go /usr/bin/go
|
||||||
|
wget https://huoxue.link:12300/api/packages/huoxue1/generic/goreleaser/amd64_latest/goreleaser.tar.gz
|
||||||
|
tar -xzvf ./goreleaser.tar.gz -C /usr/local
|
||||||
|
rm ./go1.21.3.linux-amd64.tar.gz
|
||||||
|
rm ./goreleaser.tar.gz
|
||||||
|
ln -s /usr/local/goreleaser /usr/bin/goreleaser
|
||||||
- name: Fetch all tags
|
- name: Fetch all tags
|
||||||
run: git fetch --force --tags
|
run: git fetch --force --tags
|
||||||
- name: Check snapshot
|
- name: Check snapshot
|
||||||
|
@ -34,19 +40,16 @@ jobs:
|
||||||
run: echo '::set-output name=ARG::--snapshot'
|
run: echo '::set-output name=ARG::--snapshot'
|
||||||
- name: push release
|
- name: push release
|
||||||
if: "startsWith(github.ref, 'refs/tags/')"
|
if: "startsWith(github.ref, 'refs/tags/')"
|
||||||
id: push release
|
run: |
|
||||||
uses: https://huoxue.link:12300/huoxue1/goreleaser-action@master
|
export GITEA_TOKEN=${{ secrets.TOKEN }}
|
||||||
with:
|
goreleaser release --timeout 5h30m --clean
|
||||||
version: latest
|
|
||||||
args: release --timeout 5h30m --rm-dist
|
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
if: "!startsWith(github.ref, 'refs/tags/')"
|
if: "!startsWith(github.ref, 'refs/tags/')"
|
||||||
uses: https://huoxue.link:12300/huoxue1/goreleaser-action@master
|
run: |
|
||||||
with:
|
export GITEA_TOKEN=${{ secrets.TOKEN }}
|
||||||
version: latest
|
goreleaser build --snapshot --timeout 5h30m --clean
|
||||||
args: build --snapshot --timeout 5h30m --clean
|
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
GITEA_TOKEN: ${{ secrets.TOKEN }}
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
|
|
Loading…
Reference in New Issue