diff --git a/.github/workflows/gleam-bootstrap.yml b/.github/workflows/gleam-bootstrap.yml index f5f74f6..eb70fb7 100644 --- a/.github/workflows/gleam-bootstrap.yml +++ b/.github/workflows/gleam-bootstrap.yml @@ -86,7 +86,8 @@ jobs: publish: if: ${{ inputs.run-publish || inputs.run-github-release }} - runs-on: ubuntu-24.04 + runs-on: ubuntu-latest + environment: release steps: - name: Checkout @@ -111,7 +112,17 @@ jobs: if: ${{ inputs.run-publish }} env: HEXPM_API_KEY: ${{ secrets.hexpm_api_key }} - run: printf 'I am not using semantic versioning\n' | gleam publish --yes + shell: bash + run: | + set -euo pipefail + + if [[ -z "${HEXPM_API_KEY:-}" ]]; then + echo "HEXPM_API_KEY secret is not configured." >&2 + echo "Set the repository secret HEXPM_API_KEY to a valid Hex API key before publishing." >&2 + exit 1 + fi + + printf 'I am not using semantic versioning\n' | gleam publish --yes - name: Create a GitHub release if: ${{ inputs.run-github-release }} diff --git a/examples/kitazith_example/manifest.toml b/examples/kitazith_example/manifest.toml index e461502..bc4b1e0 100644 --- a/examples/kitazith_example/manifest.toml +++ b/examples/kitazith_example/manifest.toml @@ -9,7 +9,7 @@ packages = [ { name = "gleam_stdlib", version = "0.71.0", build_tools = ["gleam"], requirements = [], otp_app = "gleam_stdlib", source = "hex", outer_checksum = "702F3BC2A14793906880B1078B19A6165F87323AEE8D0C4A34085846336FCAAE" }, { name = "gleam_time", version = "1.8.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleam_time", source = "hex", outer_checksum = "533D8723774D61AD4998324F5DD1DABDCDBFABAFB9E87CB5D03C6955448FC97D" }, { name = "gleeunit", version = "1.9.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "gleeunit", source = "hex", outer_checksum = "DA9553CE58B67924B3C631F96FE3370C49EB6D6DC6B384EC4862CC4AAA718F3C" }, - { name = "kitazith", version = "0.1.2", build_tools = ["gleam"], requirements = ["gleam_json", "gleam_stdlib", "gleam_time"], source = "local", path = "../.." }, + { name = "kitazith", version = "0.1.3", build_tools = ["gleam"], requirements = ["gleam_json", "gleam_stdlib", "gleam_time"], source = "local", path = "../.." }, ] [requirements] diff --git a/gleam.toml b/gleam.toml index 3535fba..e9e0379 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,5 +1,5 @@ name = "kitazith" -version = "0.1.2" +version = "0.1.3" # Fill out these fields if you intend to generate HTML documentation or publish # your project to the Hex package manager.