From a015c9b382ad1b1486cd7fbe195a880899c1b5cd Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Mon, 15 Sep 2025 16:12:04 -0600 Subject: [PATCH] ci: Change winget packaging methodology --- .github/workflows/release.yml | 19 +++++++++-------- CHANGELOG.md | 39 ----------------------------------- Cargo.lock | 2 +- Cargo.toml | 2 +- 4 files changed, 12 insertions(+), 50 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a1ca39b..da96752 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -313,11 +313,12 @@ jobs: cd $dist_dir if [[ "$RUNNER_OS" == "Windows" ]]; then - mv gman.exe $name.exe - archive=$dist_dir/$name.exe + # mv gman.exe $name.exe + archive=$dist_dir/$name.zip sha=$dist_dir/$name.sha256 - certutil -hashfile $name.exe sha256 | grep -E [A-Fa-f0-9]{64} > $sha - echo "archive=dist/$name.exe" >> $GITHUB_OUTPUT + 7z a $archive * + certutil -hashfile $archive sha256 | grep -E [A-Fa-f0-9]{64} > $sha + echo "archive=dist/$name.zip" >> $GITHUB_OUTPUT echo "sha=dist/$name.sha256" >> $GITHUB_OUTPUT else archive=$dist_dir/$name.tar.gz @@ -474,7 +475,7 @@ jobs: - RelativeFilePath: gman.exe PortableCommandAlias: gman ManifestType: installer - ManifestVersion: 1.6.0 + ManifestVersion: 1.10.0 YAML echo "Prepared manifests in $root" @@ -488,8 +489,7 @@ jobs: - name: Install WingetCreate tool if: steps.check.outputs.exists == 'false' && env.ACT != 'true' run: | - dotnet tool install --global wingetcreate - echo "$HOME/.dotnet/tools" >> $GITHUB_PATH + winget install wingetcreate - name: Submit initial package to winget-pkgs if: steps.check.outputs.exists == 'false' && env.ACT != 'true' @@ -501,12 +501,13 @@ jobs: - name: Publish to winget (opens PR to microsoft/winget-pkgs) if: steps.check.outputs.exists == 'true' && env.ACT != 'true' - uses: vedantmgoyal2009/winget-releaser@v2 + uses: vedantmgoyal9/winget-releaser@v2 with: identifier: DarkAlex17.GMan version: ${{ env.RELEASE_VERSION }} release-tag: v${{ env.RELEASE_VERSION }} - token: ${{ secrets.WINGET_TOKEN }} + installers-regex: '\.zip$' + token: ${{ secrets.WINGET_GITHUB_TOKEN }} publish-homebrew-formula: needs: [publish-github-release] diff --git a/CHANGELOG.md b/CHANGELOG.md index 61a468e..6327d89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,42 +6,3 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.0.1] - 2025-09-10 - -## v0.1.0 (2025-09-15) - -### Feat - -- Subcommand to edit the config directly instead of having to find the file - -### Fix - -- improved user messages for local provider sync set up -- Pass the changelog to the GHA properly using a file -- Potential bug in changelog variable generation -- Revert back hacky stuff so I can test with act now -- Attempting to use pre-generated bindgens for the aws-lc-sys library -- Install openSSL differently to make this work -- Address edge case for unknown_musl targets -- Install LLVM prereqs for release flow -- Updated the release flow to install the external bindgen-cli - -## v0.0.1 (2025-09-12) - -### Feat - -- Azure Key Vault support -- GCP Secret Manager support -- Full AWS SecretsManager support -- AWS Secrets Manager support -- Added two new flags to output where gman writes logs to and where it expects the config file to live - -### Fix - -- Made the vault file location more fault tolerant -- Attempting to maybe be a bit more explicit about config file handling to fix MacOS tests - -### Refactor - -- Refactor configuration structs directly into the provider definition to simplify validation, structs, and future extensions -- Made the creation of the log directories a bit more fault tolerant -- Renamed the provider field in a config file to type to make things a little easier to understand; also removed husky diff --git a/Cargo.lock b/Cargo.lock index 3342c16..a3eb177 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1576,7 +1576,7 @@ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" [[package]] name = "gman" -version = "0.1.0" +version = "0.0.1" dependencies = [ "anyhow", "argon2", diff --git a/Cargo.toml b/Cargo.toml index 61a597d..46c4d95 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "gman" -version = "0.1.0" +version = "0.0.1" edition = "2024" authors = ["Alex Clarke "] description = "Universal secret management and injection tool"