diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c76834d..a9874be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: {} push: tags: - - v[0-9].* + - v[0-9]* jobs: release: @@ -48,6 +48,7 @@ jobs: staging="keepawake-${{ github.head_ref || github.ref_name }}-${{ matrix.target }}" mkdir $staging + ls -R target/${{ matrix.target }}/release/ cp target/${{ matrix.target }}/release/keepawake@(|.exe) $staging/ cp README.md CHANGELOG.md LICENSE $staging/ @@ -61,7 +62,7 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') + if: github.ref_type == 'tag' with: draft: true files: ${{ steps.package.outputs.ASSET }} diff --git a/Cargo.toml b/Cargo.toml index 9b9f69c..37ff0b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,8 +24,10 @@ bin = [ capi = [] [profile.release] -strip = true lto = "thin" +strip = true +debug = true +split-debuginfo = "packed" [[bin]] name = "keepawake"