Skip to content

Commit

Permalink
chore: Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tobni committed Jul 6, 2024
1 parent dde4b7e commit 49a7fc1
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
upload_url: ${{ steps.release.outputs.upload_url }}
release_version: ${{ env.RELEASE_VERSION }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get changelog
run: |
echo '# Changes' > changelog.md
Expand All @@ -37,7 +37,7 @@ jobs:
body_path: changelog.md
draft: false
prerelease: false

build:
name: Build
needs: release
Expand All @@ -56,13 +56,9 @@ jobs:
target: x86_64-pc-windows-gnu
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
override: true
uses: dtolnay/rust-toolchain@stable

- name: Build binary
run: cargo build --verbose --release --target ${{ matrix.target }}
Expand All @@ -84,7 +80,7 @@ jobs:
tar czf "$package.tar.gz" "$package"
echo "PACKAGE=$package.tar.gz" >> $GITHUB_ENV
fi
- name: Upload release archive
uses: actions/[email protected]
env:
Expand All @@ -93,4 +89,4 @@ jobs:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ${{ env.PACKAGE }}
asset_name: ${{ env.PACKAGE }}
asset_content_type: application/octet-stream
asset_content_type: application/octet-stream

0 comments on commit 49a7fc1

Please sign in to comment.