From fde9940ea1d0ad1eedc8e5cc28c911e3d23f9de7 Mon Sep 17 00:00:00 2001 From: TheHamkerCat Date: Wed, 14 Sep 2022 16:22:33 +0530 Subject: [PATCH] ci: Fix workflow --- .github/workflows/release.yml | 37 +++++++++++++++++++++-------------- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 24 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79a202a..52fdb16 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,21 +1,28 @@ +name: Release + +permissions: + contents: write + on: - release: - types: [created] + push: + tags: + - v[0-9]+.* jobs: - release: - name: release ${{ matrix.target }} + create-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: taiki-e/create-gh-release-action@v1 + with: + token: ${{ secrets.TOKEN }} + + upload-assets: runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - target: x86_64-unknown-linux-musl steps: - - uses: actions/checkout@master - - name: Compile and release - uses: rust-build/rust-build.action@v1.3.2 - env: - GITHUB_TOKEN: ${{ secrets.TOKEN }} + - uses: actions/checkout@v3 + - uses: taiki-e/upload-rust-binary-action@v1 with: - RUSTTARGET: ${{ matrix.target }} - EXTRA_FILES: "README.md LICENSE" + bin: wallrus + include: LICENSE,README.md + token: ${{ secrets.TOKEN }} diff --git a/Cargo.lock b/Cargo.lock index a42dbc5..2e918f5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1414,7 +1414,7 @@ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" [[package]] name = "wallrus" -version = "1.0.2" +version = "1.2.0" dependencies = [ "clap", "colored", diff --git a/Cargo.toml b/Cargo.toml index 9ad6cd5..9d71965 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wallrus" -version = "1.0.2" +version = "1.2.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html