From 515e1356926bd391b303438277e3f31778b8c1b7 Mon Sep 17 00:00:00 2001 From: ste Date: Sun, 20 Aug 2023 16:33:41 +0200 Subject: [PATCH] Os agnostic ls and fix input --- .github/workflows/release-rs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-rs.yml b/.github/workflows/release-rs.yml index e6a51c6..3ab4b06 100644 --- a/.github/workflows/release-rs.yml +++ b/.github/workflows/release-rs.yml @@ -26,14 +26,14 @@ jobs: echo PKG_VERSION=$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' jig-cli/Cargo.toml) >> $GITHUB_OUTPUT - name: Create draft release + if: ${{ github.event.inputs.draft }} run: gh release create 'v${{ steps.crate-version.outputs.PKG_VERSION }}' --draft - if: ${{ inputs.draft == 'true' }} env: GH_TOKEN: ${{ secrets.GH_TOKEN }} - name: Create release + if: ${{ !github.event.inputs.draft }} run: gh release create 'v${{ steps.crate-version.outputs.PKG_VERSION }}' - if: ${{ inputs.draft != 'true' }} env: GH_TOKEN: ${{ secrets.GH_TOKEN }} @@ -66,7 +66,7 @@ jobs: targets: "${{ matrix.target }}" - run: "cargo build --release ${{ matrix.features }} --target ${{ matrix.target }}" - - run: ls -al target/release/ + - run: ls target/release/ # - run: gh release upload v${{ needs.get-tag.}} target/release/jig # env: # GH_TOKEN: ${{ secrets.GH_TOKEN }}