Skip to content

Commit

Permalink
Fix version on Windows and upload-artifact#478
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Aug 8, 2024
1 parent 0c029cc commit fff45ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ jobs:
if: ${{ !matrix.platform.skip_tests }}
- name: Get the Version
if: env.VERSION == ''
shell: bash
run: echo "VERSION=$(grep "^version" Cargo.toml | sed -r 's/version[^"]+"([^"]+).*/\1/')" >> $GITHUB_ENV
- name: Determine Archive Name
shell: bash
Expand All @@ -198,6 +199,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
path: "pgxn_meta-*"
name: "${{ env.ARCHIVE }}"
overwrite: true
if: matrix.toolchain == 'stable' && github.ref == 'refs/tags/test-release'
- name: Check the Version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cargo-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ jobs:
printf "Cargo.toml version %s does not match tag %s\n" "$v" "$GITHUB_REF_NAME" >&2
exit 1
fi
cargo publish
# cargo publish
if: startsWith( github.ref, 'refs/tags/v' )

0 comments on commit fff45ed

Please sign in to comment.