diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 88af3f3..3bd2bbb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,8 +36,14 @@ jobs: else VERSION=${{ inputs.version }} fi + if [[ $VERSION == *"-"* ]]; then + PRERELEASE=true + else + PRERELEASE=false + fi echo "version=${VERSION}" >> $GITHUB_OUTPUT + echo "prerelease=${PRERELEASE}" >> $GITHUB_OUTPUT - name: Checkout repository uses: actions/checkout@v4 - name: Setup Rust @@ -80,5 +86,6 @@ jobs: - name: Create Release uses: softprops/action-gh-release@v1 with: + prerelease: ${{ steps.version.outputs.prerelease }} files: | cantari-${{ steps.version.outputs.version }}${{ matrix.suffix }}.zip diff --git a/Cargo.lock b/Cargo.lock index 3b5deba..86da359 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -539,7 +539,7 @@ dependencies = [ [[package]] name = "cantari" -version = "0.1.1" +version = "0.0.0" dependencies = [ "anyhow", "assets", diff --git a/crates/cantari/Cargo.toml b/crates/cantari/Cargo.toml index 40b14f1..150b6d8 100644 --- a/crates/cantari/Cargo.toml +++ b/crates/cantari/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cantari" -version = "0.1.1" +version = "0.0.0" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html