Skip to content

Commit

Permalink
Release workflow (fix fr)
Browse files Browse the repository at this point in the history
  • Loading branch information
UwUDev committed Sep 28, 2024
1 parent 09f4ec9 commit a5e7273
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 27 deletions.
33 changes: 7 additions & 26 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
remote: ${{ steps.env.outputs.remote }}
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v3 # Updated to the latest stable version
uses: actions/checkout@v3

- name: ⚙️ Setup environment
id: env
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v3 # Updated to the latest stable version
uses: actions/checkout@v3

- name: ⬇️ Force fetch of repo to get the absolute latest version
run: |
Expand All @@ -63,12 +63,6 @@ jobs:
with:
install-only: true

- name: ⬇️ Get Current Release
id: get-release
uses: joutvhu/get-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: ⬇️ Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
Expand All @@ -86,22 +80,9 @@ jobs:
if: runner.os == 'Linux'
run: upx --best --lzma target/release/mail-sink

- name: 🚀 Upload Release Asset (Windows)
if: runner.os == 'Windows'
uses: actions/upload-release-asset@v3
- name: 🚀 Upload Release Assets
uses: softprops/action-gh-release@v1
with:
upload_url: ${{ steps.get-release.outputs.upload_url }}
asset_path: target\\release\\mail-sink.exe
asset_name: mail-sink.exe
asset_content_type: application/octet-stream
token: ${{ secrets.GITHUB_TOKEN }}

- name: 🚀 Upload Release Asset (Linux)
if: runner.os == 'Linux'
uses: actions/upload-release-asset@v3
with:
upload_url: ${{ steps.get-release.outputs.upload_url }}
asset_path: target/release/mail-sink
asset_name: mail-sink
asset_content_type: application/octet-stream
token: ${{ secrets.GITHUB_TOKEN }}
files: target/release/mail-sink*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a5e7273

Please sign in to comment.