Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteregrets committed Nov 5, 2024
1 parent 23b1195 commit 95b8961
Showing 1 changed file with 26 additions and 23 deletions.
49 changes: 26 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: release
on:
push:
tags: ["[0-9]+.[0-9]+.[0-9]+*"]
pull_request:
workflow_dispatch:
jobs:
build_binaries:
Expand Down Expand Up @@ -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
Expand All @@ -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 }}

0 comments on commit 95b8961

Please sign in to comment.