Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteregrets committed Nov 5, 2024
1 parent 0c9872a commit c511d3d
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: release
on:
push:
tags: ["[0-9]+.[0-9]+.[0-9]+*"]
pull_request:
tags: ["[0-9]+.[0-9]+.[0-9]+*"]
workflow_dispatch:
jobs:
build_binaries:
Expand All @@ -17,6 +16,8 @@ jobs:
deps: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
env:
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: macos-latest
Expand Down Expand Up @@ -71,26 +72,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/toml-action@v1.2.0
# 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/toml-action@v1.2.0
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 c511d3d

Please sign in to comment.