Skip to content

ci: build beta release #6

ci: build beta release

ci: build beta release #6

Workflow file for this run

name: beta release
on:
push:
branches: [ 'main' ]
jobs:
changelog:
strategy:
matrix:
platform: [ ubuntu-latest ]
go-version: [ '1.21' ]
name: Beta Release Changelog
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: changelog # or [email protected] if ensure the stable result
id: changelog
run: |
git tag -l
npx changelogen@latest --output CHANGELOG.md
# env:
# GITHUB_TOKEN: ${{secrets.MY_TOKEN}}
- name: Prerelease
uses: tubone24/update_release@master
env:
GITHUB_TOKEN: ${{ secrets.MY_TOKEN }}
TAG_NAME: beta
with:
prerelease: true
body_path: CHANGELOG.md
- name: Upload assets
uses: softprops/action-gh-release@v2
with:
files: CHANGELOG.md
release:
needs:
- changelog
strategy:
matrix:
include:
- target: '!(*musl*|*windows-arm64*|*android*)' # xgo
hash: "md5"
- target: 'linux-*-musl*' #musl
hash: "md5-linux-musl"
- target: 'windows-arm64' #win-arm64
hash: "md5-windows-arm64"
- target: 'android-*' #android
hash: "md5-android"
name: Beta Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Setup web
run: bash build.sh dev web
- name: Build
id: test-action
uses: go-cross/cgo-actions@v1
with:
targets: ${{ matrix.target }}
musl-target-format: $os-$musl-$arch
out-dir: build
- name: Compress
run: |
bash build.sh zip ${{ matrix.hash }}
- name: Upload assets
uses: softprops/action-gh-release@v2
with:
files: build/compress/*