diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 925ed3e..88682e3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,14 +26,22 @@ jobs: # working directory of Cargo.toml cwd: ./src-tauri/ + - name: Rust Crate Version + # You may pin to the exact commit or the version. + # uses: colt-1/crate-version@f0081b509cc5c928cf4e807219479a481f969341 + uses: colt-1/crate-version@2.0.0 + with: + # The relative path of toml file + file: ./src-tauri/Cargo.toml + - name: Create Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.DAMIEN_TOKEN }} with: - tag_name: ${{ github.event.inputs.version }} - release_name: Release ${{ github.event.inputs.version }} + tag_name: ${{ steps.crate-version.outputs.version }} + release_name: Release ${{ steps.crate-version.outputs.version }} draft: false prerelease: false