[O] Default allow changing branch rules
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
name: Build executables
|
||||
|
||||
"on":
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
tags:
|
||||
- "v*"
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
@@ -148,3 +149,28 @@ jobs:
|
||||
name: ${{ env.BIN_NAME }}-linux-${{ matrix.arch }}-musl
|
||||
path: ${{ env.BIN_NAME }}-linux-${{ matrix.arch }}-musl.tar.gz
|
||||
if-no-files-found: error
|
||||
|
||||
release-assets:
|
||||
name: Attach release assets
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- windows-x86_64
|
||||
- macos-universal
|
||||
- linux-musl
|
||||
if: github.event_name == 'release'
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- name: Download packaged binaries
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: release-assets
|
||||
merge-multiple: true
|
||||
|
||||
- name: Attach binaries to release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
tag_name: ${{ github.event.release.tag_name }}
|
||||
files: release-assets/*
|
||||
fail_on_unmatched_files: true
|
||||
overwrite_files: true
|
||||
|
||||
Reference in New Issue
Block a user