Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
infiniteregrets committed Nov 4, 2024
1 parent 1d21c7a commit 7b22a8d
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,7 @@ jobs:
target: aarch64-pc-windows-msvc
steps:
- name: checkout
uses: actions/checkout@v4
- name: version
id: version
uses: SebRollen/[email protected]
with:
file: Cargo.toml
field: package.version
uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""
Expand All @@ -46,15 +40,16 @@ jobs:
cd target/${{ matrix.target }}/release
if [ "${{ matrix.os }}" = "windows-latest" ];
then\n 7z a ../../../$s2-cli-${{ matrix.target }}.zip $s2-cli.exe
then
7z a ../../../$s2-cli-${{ matrix.target }}.zip s2-cli.exe
else
tar -czf ../../../$s2-cli-${{ matrix.target }}.tar.gz $s2-cli
tar -czf ../../../$s2-cli-${{ matrix.target }}.tar.gz s2-cli
fi
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: |
path: |
*.tar.gz
*.zip
if-no-files-found: error
Expand All @@ -65,6 +60,14 @@ jobs:
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
Expand All @@ -73,5 +76,4 @@ jobs:
files: |
**/*.tar.gz
**/*.zip
draft: true
generate_release_notes: true
name: ${{ steps.version.outputs.value }}

0 comments on commit 7b22a8d

Please sign in to comment.