diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 9471d18..9b25b06 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -18,6 +18,9 @@ jobs: - uses: actions/checkout@v3 - run: cargo build --verbose - run: cargo test update_package_version -- ${{ inputs.tag }} --nocapture + - run: cargo publish --manifest-path csbindgen/Cargo.toml + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - run: git commit -m "feat: Update cargo.toml version to ${{ env.GIT_TAG }}" -a - run: git tag ${{ env.GIT_TAG }} - name: Push changes @@ -26,9 +29,6 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.ref }} tags: true - - run: cargo publish --manifest-path csbindgen/Cargo.toml - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} build-dotnet: needs: [build-and-push-rust]