diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa2d30d..4eb8d3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,8 @@ name: Rust static build and publish -on: ["push"] -# push: -# tags: -# - '*' +on: + push: + tags: + - '*' env: CARGO_TERM_COLOR: always BUILD_TARGET: x86_64-unknown-linux-musl @@ -51,10 +51,11 @@ jobs: with: name: ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }} path: ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }} - - name: Move binary + - name: Prepare build env run: | mkdir -p target/${{ env.BUILD_TARGET }}/release/ mv ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }}/rexec target/${{ env.BUILD_TARGET }}/release/ + sed -i -e "s/some_ver/${{ env.VERSION }}/" PKGBUILD - name: Build ZST package run: | makepkg -f @@ -65,26 +66,28 @@ jobs: path: ${{ github.workspace }}/*zst -# release: -# name: Release binary -# needs: ["build"] -# runs-on: ubuntu-latest -# permissions: -# contents: write -# steps: -# - uses: actions/download-artifact@master -# id: download_binary -# with: -# name: ${{ env.BINARY_NAME }}_x86_64-linux-musl -# path: ${{ env.BINARY_NAME }}_x86_64-linux-musl -# - uses: actions/download-artifact@master -# id: download_pkgbuild -# with: -# name: PKGBUILD -# path: PKGBUILD -# - uses: ncipollo/release-action@v1 -# name: Update release page -# with: -# artifacts: "${{ steps.download_binary.outputs.download-path }}/*" -# allowUpdates: true -# body: Static build for x86_64-linux using MUSL + release: + name: Release binary + needs: ["build"] + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/download-artifact@master + name: Download binary + id: download_binary + with: + name: ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }} + path: ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }} + - uses: actions/download-artifact@master + id: download_pkg + name: Download ZST package + with: + name: ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }}.zst + path: ${{ env.BINARY_NAME }}_${{ env.VERSION }}_${{ env.BUILD_TARGET }}.zst + - uses: ncipollo/release-action@v1 + name: Update release page + with: + artifacts: "${{ steps.download_binary.outputs.download-path }}/*,${{ steps.download_pkg.outputs.download-path }}/*" + allowUpdates: true + body: Static musl build for x86_64-linux and Arch Linux package diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f78570..43b423f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.7] - 2023-08-31 + +### Changed + +- Ci + ## [1.0.4] - 2023-08-14 ### Changed diff --git a/Cargo.toml b/Cargo.toml index 9ca129f..d036a53 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rexec" -version = "1.0.6" +version = "1.0.7" readme = "https://github.com/house-of-vanity/rexec#readme" edition = "2021" description = "Parallel SSH executor" diff --git a/PKGBUILD b/PKGBUILD index 011645c..5ee0c8b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: AB pkgname=rexec -pkgver=1.0.6 +pkgver=some_ver pkgrel=1 pkgdesc="Parallel SSH executor" url="https://github.com/house-of-vanity/rexec"