-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23b1195
commit 95b8961
Showing
1 changed file
with
26 additions
and
23 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ name: release | |
on: | ||
push: | ||
tags: ["[0-9]+.[0-9]+.[0-9]+*"] | ||
pull_request: | ||
workflow_dispatch: | ||
jobs: | ||
build_binaries: | ||
|
@@ -34,6 +35,8 @@ jobs: | |
tool: cross | ||
- name: install protoc | ||
uses: arduino/setup-protoc@v3 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- run: | | ||
git config --global --add url."https://${{ secrets.GH_TOKEN }}:[email protected]/".insteadOf "[email protected]:" | ||
git config --global --add url."https://${{ secrets.GH_TOKEN }}:x-oauth-basic@github".insteadOf https://github | ||
|
@@ -60,26 +63,26 @@ jobs: | |
*.zip | ||
if-no-files-found: error | ||
|
||
create_release: | ||
needs: build_binaries | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: version | ||
id: version | ||
uses: SebRollen/[email protected] | ||
with: | ||
file: Cargo.toml | ||
field: package.version | ||
- name: download artifacts | ||
uses: actions/download-artifact@v4 | ||
- name: create Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
**/*.tar.gz | ||
**/*.zip | ||
name: ${{ steps.version.outputs.value }} | ||
# create_release: | ||
# needs: build_binaries | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: write | ||
# steps: | ||
# - name: checkout | ||
# uses: actions/checkout@v4 | ||
# - name: version | ||
# id: version | ||
# uses: SebRollen/[email protected] | ||
# with: | ||
# file: Cargo.toml | ||
# field: package.version | ||
# - name: download artifacts | ||
# uses: actions/download-artifact@v4 | ||
# - name: create Release | ||
# uses: softprops/action-gh-release@v2 | ||
# with: | ||
# files: | | ||
# **/*.tar.gz | ||
# **/*.zip | ||
# name: ${{ steps.version.outputs.value }} |