fix ci #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build And Publish Releases | |
# https://github.com/softprops/action-gh-release/issues/236#issuecomment-1150530128 | |
permissions: | |
contents: write | |
on: | |
# Allow mannual trigger | |
workflow_dispatch: | |
# Trigger on push new tag | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build Frontend | |
run: | | |
bash build_frontend.sh | |
- name: Compile | |
uses: crazy-max/ghaction-xgo@v3 | |
with: | |
xgo_version: latest | |
go_version: 1.21.x | |
dest: dist | |
prefix: authlibskin | |
targets: windows/386,windows/amd64,linux/386,linux/amd64,linux/arm,linux/arm64,darwin/arm64,darwin/amd64 | |
# Show less information | |
v: false | |
x: false | |
race: false | |
ldflags: -s -w | |
tags: redis,sqlite | |
pkg: cmd/authlibskin | |
buildmode: default | |
trimpath: true | |
- name: upx | |
run: | | |
upx ./dist/* | |
- name: Print sha256 | |
run : | | |
sha256sum ./dist/* | |
sha256sum ./dist/* > ./dist/sha256 | |
- name: Publish GitHub Releases | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: "authlibskin ${{ github.ref_name }}" | |
files: | | |
./dist/* | |
token: ${{ secrets.GITHUB_TOKEN }} |