ci: Need to manually deploy first winget package
This commit is contained in:
+211
-205
@@ -313,7 +313,6 @@ jobs:
|
|||||||
cd $dist_dir
|
cd $dist_dir
|
||||||
|
|
||||||
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
if [[ "$RUNNER_OS" == "Windows" ]]; then
|
||||||
# mv gman.exe $name.exe
|
|
||||||
archive=$dist_dir/$name.zip
|
archive=$dist_dir/$name.zip
|
||||||
sha=$dist_dir/$name.sha256
|
sha=$dist_dir/$name.sha256
|
||||||
7z a $archive *
|
7z a $archive *
|
||||||
@@ -364,6 +363,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check if actor is repository owner
|
- name: Check if actor is repository owner
|
||||||
if: ${{ github.actor != github.repository_owner && env.ACT != 'true' }}
|
if: ${{ github.actor != github.repository_owner && env.ACT != 'true' }}
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "You are not authorized to run this workflow."
|
echo "You are not authorized to run this workflow."
|
||||||
exit 1
|
exit 1
|
||||||
@@ -386,115 +386,121 @@ jobs:
|
|||||||
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
|
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Validate release environment variables
|
- name: Validate release environment variables
|
||||||
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "Release version: ${{ env.RELEASE_VERSION }}"
|
echo "Release version: ${{ env.RELEASE_VERSION }}"
|
||||||
|
|
||||||
- name: Check if winget package already exists
|
# - name: Check if winget package already exists
|
||||||
id: check
|
# id: check
|
||||||
shell: bash
|
# shell: bash
|
||||||
env:
|
# env:
|
||||||
IDENTIFIER: DarkAlex17.GMan
|
# IDENTIFIER: DarkAlex17.GMan
|
||||||
run: |
|
# run: |
|
||||||
set -euo pipefail
|
# set -euo pipefail
|
||||||
publisher=${IDENTIFIER%%.*}
|
# publisher=${IDENTIFIER%%.*}
|
||||||
pkgname=${IDENTIFIER#*.}
|
# pkgname=${IDENTIFIER#*.}
|
||||||
first_letter=${publisher:0:1}
|
# first_letter=${publisher:0:1}
|
||||||
api_url="https://api.github.com/repos/microsoft/winget-pkgs/contents/manifests/$first_letter/$publisher/$pkgname"
|
# api_url="https://api.github.com/repos/microsoft/winget-pkgs/contents/manifests/$first_letter/$publisher/$pkgname"
|
||||||
status=$(curl -s -o /dev/null -w "%{http_code}" "$api_url")
|
# status=$(curl -s -o /dev/null -w "%{http_code}" "$api_url")
|
||||||
if [[ "$status" == "200" ]]; then
|
# if [[ "$status" == "200" ]]; then
|
||||||
echo "exists=true" >> "$GITHUB_OUTPUT"
|
# echo "exists=true" >> "$GITHUB_OUTPUT"
|
||||||
else
|
# else
|
||||||
echo "exists=false" >> "$GITHUB_OUTPUT"
|
# echo "exists=false" >> "$GITHUB_OUTPUT"
|
||||||
fi
|
# fi
|
||||||
|
#
|
||||||
- name: Prepare manifests for first submission
|
# - name: Prepare manifests for first submission
|
||||||
if: steps.check.outputs.exists == 'false' && env.ACT != 'true'
|
# if: steps.check.outputs.exists == 'false' && env.ACT != 'true'
|
||||||
env:
|
# shell: bash
|
||||||
IDENTIFIER: DarkAlex17.GMan
|
# env:
|
||||||
RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
|
# IDENTIFIER: DarkAlex17.GMan
|
||||||
REPO: ${{ github.repository }}
|
# RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
|
||||||
run: |
|
# REPO: ${{ github.repository }}
|
||||||
set -euo pipefail
|
# run: |
|
||||||
publisher=${IDENTIFIER%%.*}
|
# set -euo pipefail
|
||||||
pkgname=${IDENTIFIER#*.}
|
# publisher=${IDENTIFIER%%.*}
|
||||||
desc="$(grep -m1 '^description\s*=\s*"' Cargo.toml | sed -E 's/^[^\"]+\"(.*)\"/\1/')"
|
# pkgname=${IDENTIFIER#*.}
|
||||||
license="$(grep -m1 '^license\s*=\s*"' Cargo.toml | sed -E 's/^[^\"]+\"(.*)\"/\1/')"
|
# desc="$(grep -m1 '^description\s*=\s*"' Cargo.toml | sed -E 's/^[^\"]+\"(.*)\"/\1/')"
|
||||||
|
# license="$(grep -m1 '^license\s*=\s*"' Cargo.toml | sed -E 's/^[^\"]+\"(.*)\"/\1/')"
|
||||||
# Compute SHAs from artifacts
|
#
|
||||||
x64_sha=$(awk '{print $1}' artifacts/gman-x86_64-pc-windows-msvc.sha256)
|
# # Compute SHAs from artifacts
|
||||||
arm64_sha=$(awk '{print $1}' artifacts/gman-aarch64-pc-windows-msvc.sha256)
|
# x64_sha=$(awk '{print $1}' artifacts/gman-x86_64-pc-windows-msvc.sha256)
|
||||||
|
# arm64_sha=$(awk '{print $1}' artifacts/gman-aarch64-pc-windows-msvc.sha256)
|
||||||
# Release URLs
|
#
|
||||||
url_x64="https://github.com/$REPO/releases/download/v$RELEASE_VERSION/gman-x86_64-pc-windows-msvc.zip"
|
# # Release URLs
|
||||||
url_arm64="https://github.com/$REPO/releases/download/v$RELEASE_VERSION/gman-aarch64-pc-windows-msvc.zip"
|
# url_x64="https://github.com/$REPO/releases/download/v$RELEASE_VERSION/gman-x86_64-pc-windows-msvc.zip"
|
||||||
|
# url_arm64="https://github.com/$REPO/releases/download/v$RELEASE_VERSION/gman-aarch64-pc-windows-msvc.zip"
|
||||||
# Create temporary manifest directory
|
#
|
||||||
root="winget-manifests/manifests/${publisher:0:1}/$publisher/$pkgname/$RELEASE_VERSION"
|
# # Create temporary manifest directory
|
||||||
mkdir -p "$root"
|
# root="winget-manifests/manifests/${publisher:0:1}/$publisher/$pkgname/$RELEASE_VERSION"
|
||||||
|
# mkdir -p "$root"
|
||||||
echo "PackageIdentifier: $IDENTIFIER" >> "$root/$IDENTIFIER.yaml"
|
#
|
||||||
echo "PackageVersion: $RELEASE_VERSION" >> "$root/$IDENTIFIER.yaml"
|
# echo "PackageIdentifier: $IDENTIFIER" >> "$root/$IDENTIFIER.yaml"
|
||||||
echo "DefaultLocale: en-US" >> "$root/$IDENTIFIER.yaml"
|
# echo "PackageVersion: $RELEASE_VERSION" >> "$root/$IDENTIFIER.yaml"
|
||||||
echo "ManifestType: version" >> "$root/$IDENTIFIER.yaml"
|
# echo "DefaultLocale: en-US" >> "$root/$IDENTIFIER.yaml"
|
||||||
echo "ManifestVersion: 1.6.0" >> "$root/$IDENTIFIER.yaml"
|
# echo "ManifestType: version" >> "$root/$IDENTIFIER.yaml"
|
||||||
|
# echo "ManifestVersion: 1.10.0" >> "$root/$IDENTIFIER.yaml"
|
||||||
echo "PackageIdentifier: $IDENTIFIER" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
#
|
||||||
echo "PackageVersion: $RELEASE_VERSION" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
# echo "PackageIdentifier: $IDENTIFIER" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "PackageLocale: en-US" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
# echo "PackageVersion: $RELEASE_VERSION" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "Publisher: $publisher" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
# echo "PackageLocale: en-US" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "PackageName: $pkgname" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
# echo "Publisher: $publisher" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "Moniker: gman" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
# echo "PackageName: $pkgname" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "License: $license" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
# echo "PublisherUrl: https://github.com/$REPO" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "ShortDescription: $desc" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
# echo "PublisherSupportUrl: https://github.com/$REPO/issues" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "PublisherUrl: https://github.com/$publisher" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
# echo "Author: Dark-Alex-17" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "PackageUrl: https://github.com/$REPO" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
# echo "Moniker: gman" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "ManifestType: defaultLocale" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
# echo "License: $license" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "ManifestVersion: 1.6.0" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
# echo "LicenseUrl: https://github.com/$REPO/blob/main/LICENSE" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
|
# echo "ShortDescription: $desc" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "PackageIdentifier: $IDENTIFIER" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo "ManifestType: defaultLocale" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "PackageVersion: $RELEASE_VERSION" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo "ManifestVersion: 1.10.0" >> "$root/$IDENTIFIER.locale.en-US.yaml"
|
||||||
echo "InstallerType: zip" >> "$root/$IDENTIFIER.installer.yaml"
|
#
|
||||||
echo "Installers:" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo "PackageIdentifier: $IDENTIFIER" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " - Architecture: x64" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo "PackageVersion: $RELEASE_VERSION" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " InstallerUrl: $url_x64" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo "InstallerType: zip" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " InstallerSha256: $x64_sha" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo "Installers:" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " NestedInstallerType: portable" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " - Architecture: x64" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " NestedInstallerFiles:" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " InstallerUrl: $url_x64" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " - RelativeFilePath: gman.exe" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " InstallerSha256: $x64_sha" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " PortableCommandAlias: gman" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " NestedInstallerType: portable" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " - Architecture: arm64" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " NestedInstallerFiles:" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " InstallerUrl: $url_arm64" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " - RelativeFilePath: gman.exe" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " InstallerSha256: $arm64_sha" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " PortableCommandAlias: gman" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " NestedInstallerType: portable" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " - Architecture: arm64" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " NestedInstallerFiles:" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " InstallerUrl: $url_arm64" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " - RelativeFilePath: gman.exe" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " InstallerSha256: $arm64_sha" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo " PortableCommandAlias: gman" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " NestedInstallerType: portable" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo "ManifestType: installer" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " NestedInstallerFiles:" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo "ManifestVersion: 1.10.0" >> "$root/$IDENTIFIER.installer.yaml"
|
# echo " - RelativeFilePath: gman.exe" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
|
# echo " PortableCommandAlias: gman" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
echo "Prepared manifests in $root"
|
# echo "ManifestType: installer" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
|
# echo "ManifestVersion: 1.10.0" >> "$root/$IDENTIFIER.installer.yaml"
|
||||||
- name: Install .NET for WingetCreate
|
#
|
||||||
if: steps.check.outputs.exists == 'false' && env.ACT != 'true'
|
# echo "Prepared manifests in $root"
|
||||||
uses: actions/setup-dotnet@v4
|
#
|
||||||
with:
|
# - name: Install .NET for WingetCreate
|
||||||
dotnet-version: '8.0.x'
|
# if: steps.check.outputs.exists == 'false' && env.ACT != 'true'
|
||||||
|
# uses: actions/setup-dotnet@v4
|
||||||
- name: Install WingetCreate tool
|
# with:
|
||||||
if: steps.check.outputs.exists == 'false' && env.ACT != 'true'
|
# dotnet-version: '8.0.x'
|
||||||
run: |
|
#
|
||||||
winget install wingetcreate
|
# - name: Install WingetCreate tool
|
||||||
|
# if: steps.check.outputs.exists == 'false' && env.ACT != 'true'
|
||||||
- name: Submit initial package to winget-pkgs
|
# run: |
|
||||||
if: steps.check.outputs.exists == 'false' && env.ACT != 'true'
|
# winget install wingetcreate
|
||||||
env:
|
#
|
||||||
TOKEN: ${{ secrets.WINGET_GITHUB_TOKEN }}
|
# - name: Submit initial package to winget-pkgs
|
||||||
run: |
|
# if: steps.check.outputs.exists == 'false' && env.ACT != 'true'
|
||||||
set -euo pipefail
|
# shell: bash
|
||||||
wingetcreate submit winget-manifests/manifests --submit --token "$TOKEN" --owner microsoft
|
# env:
|
||||||
|
# TOKEN: ${{ secrets.WINGET_GITHUB_TOKEN }}
|
||||||
|
# run: |
|
||||||
|
# set -euo pipefail
|
||||||
|
# wingetcreate submit winget-manifests/manifests --submit --token "$TOKEN" --owner microsoft
|
||||||
|
|
||||||
- name: Publish to winget (opens PR to microsoft/winget-pkgs)
|
- name: Publish to winget (opens PR to microsoft/winget-pkgs)
|
||||||
if: steps.check.outputs.exists == 'true' && env.ACT != 'true'
|
if: env.ACT != 'true'
|
||||||
|
# if: steps.check.outputs.exists == 'true' && env.ACT != 'true'
|
||||||
uses: vedantmgoyal9/winget-releaser@v2
|
uses: vedantmgoyal9/winget-releaser@v2
|
||||||
with:
|
with:
|
||||||
identifier: DarkAlex17.GMan
|
identifier: DarkAlex17.GMan
|
||||||
@@ -503,103 +509,103 @@ jobs:
|
|||||||
installers-regex: '\.zip$'
|
installers-regex: '\.zip$'
|
||||||
token: ${{ secrets.WINGET_GITHUB_TOKEN }}
|
token: ${{ secrets.WINGET_GITHUB_TOKEN }}
|
||||||
|
|
||||||
publish-homebrew-formula:
|
# publish-homebrew-formula:
|
||||||
needs: [publish-github-release]
|
# needs: [publish-github-release]
|
||||||
name: Update Homebrew formulas
|
# name: Update Homebrew formulas
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Check if actor is repository owner
|
# - name: Check if actor is repository owner
|
||||||
if: ${{ github.actor != github.repository_owner && env.ACT != 'true' }}
|
# if: ${{ github.actor != github.repository_owner && env.ACT != 'true' }}
|
||||||
run: |
|
# run: |
|
||||||
echo "You are not authorized to run this workflow."
|
# echo "You are not authorized to run this workflow."
|
||||||
exit 1
|
# exit 1
|
||||||
|
#
|
||||||
- name: Checkout repository
|
# - name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
with:
|
# with:
|
||||||
fetch-depth: 1
|
# fetch-depth: 1
|
||||||
|
#
|
||||||
- name: Get release artifacts
|
# - name: Get release artifacts
|
||||||
uses: actions/download-artifact@v4
|
# uses: actions/download-artifact@v4
|
||||||
with:
|
# with:
|
||||||
path: artifacts
|
# path: artifacts
|
||||||
merge-multiple: true
|
# merge-multiple: true
|
||||||
|
#
|
||||||
- name: Set release assets and version
|
# - name: Set release assets and version
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
# Set environment variables
|
# # Set environment variables
|
||||||
macos_sha="$(cat ./artifacts/gman-x86_64-apple-darwin.sha256 | awk '{print $1}')"
|
# macos_sha="$(cat ./artifacts/gman-x86_64-apple-darwin.sha256 | awk '{print $1}')"
|
||||||
echo "MACOS_SHA=$macos_sha" >> $GITHUB_ENV
|
# echo "MACOS_SHA=$macos_sha" >> $GITHUB_ENV
|
||||||
macos_sha_arm="$(cat ./artifacts/gman-aarch64-apple-darwin.sha256 | awk '{print $1}')"
|
# macos_sha_arm="$(cat ./artifacts/gman-aarch64-apple-darwin.sha256 | awk '{print $1}')"
|
||||||
echo "MACOS_SHA_ARM=$macos_sha_arm" >> $GITHUB_ENV
|
# echo "MACOS_SHA_ARM=$macos_sha_arm" >> $GITHUB_ENV
|
||||||
linux_sha="$(cat ./artifacts/gman-x86_64-unknown-linux-musl.sha256 | awk '{print $1}')"
|
# linux_sha="$(cat ./artifacts/gman-x86_64-unknown-linux-musl.sha256 | awk '{print $1}')"
|
||||||
echo "LINUX_SHA=$linux_sha" >> $GITHUB_ENV
|
# echo "LINUX_SHA=$linux_sha" >> $GITHUB_ENV
|
||||||
release_version="$(cat ./artifacts/release-version)"
|
# release_version="$(cat ./artifacts/release-version)"
|
||||||
echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
|
# echo "RELEASE_VERSION=$release_version" >> $GITHUB_ENV
|
||||||
|
#
|
||||||
- name: Validate release environment variables
|
# - name: Validate release environment variables
|
||||||
run: |
|
# run: |
|
||||||
echo "Release SHA macos: ${{ env.MACOS_SHA }}"
|
# echo "Release SHA macos: ${{ env.MACOS_SHA }}"
|
||||||
echo "Release SHA macos-arm: ${{ env.MACOS_SHA_ARM }}"
|
# echo "Release SHA macos-arm: ${{ env.MACOS_SHA_ARM }}"
|
||||||
echo "Release SHA linux musl: ${{ env.LINUX_SHA }}"
|
# echo "Release SHA linux musl: ${{ env.LINUX_SHA }}"
|
||||||
echo "Release version: ${{ env.RELEASE_VERSION }}"
|
# echo "Release version: ${{ env.RELEASE_VERSION }}"
|
||||||
|
#
|
||||||
- name: Execute Homebrew packaging script
|
# - name: Execute Homebrew packaging script
|
||||||
if: env.ACT != 'true'
|
# if: env.ACT != 'true'
|
||||||
run: |
|
# run: |
|
||||||
# run packaging script
|
# # run packaging script
|
||||||
python "./deployment/homebrew/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/homebrew/gman.rb.template" "./gman.rb" ${{ env.MACOS_SHA }} ${{ env.MACOS_SHA_ARM }} ${{ env.LINUX_SHA }}
|
# python "./deployment/homebrew/packager.py" ${{ env.RELEASE_VERSION }} "./deployment/homebrew/gman.rb.template" "./gman.rb" ${{ env.MACOS_SHA }} ${{ env.MACOS_SHA_ARM }} ${{ env.LINUX_SHA }}
|
||||||
|
#
|
||||||
- name: Push changes to Homebrew tap
|
# - name: Push changes to Homebrew tap
|
||||||
if: env.ACT != 'true'
|
# if: env.ACT != 'true'
|
||||||
env:
|
# env:
|
||||||
TOKEN: ${{ secrets.GMAN_GITHUB_TOKEN }}
|
# TOKEN: ${{ secrets.GMAN_GITHUB_TOKEN }}
|
||||||
run: |
|
# run: |
|
||||||
# push to Git
|
# # push to Git
|
||||||
git config --global user.name "Dark-Alex-17"
|
# git config --global user.name "Dark-Alex-17"
|
||||||
git config --global user.email "alex.j.tusa@gmail.com"
|
# git config --global user.email "alex.j.tusa@gmail.com"
|
||||||
git clone https://Dark-Alex-17:${{ secrets.GMAN_GITHUB_TOKEN }}@github.com/Dark-Alex-17/homebrew-gman.git
|
# git clone https://Dark-Alex-17:${{ secrets.GMAN_GITHUB_TOKEN }}@github.com/Dark-Alex-17/homebrew-gman.git
|
||||||
rm homebrew-gman/Formula/gman.rb
|
# rm homebrew-gman/Formula/gman.rb
|
||||||
cp gman.rb homebrew-gman/Formula
|
# cp gman.rb homebrew-gman/Formula
|
||||||
cd homebrew-gman
|
# cd homebrew-gman
|
||||||
git add .
|
# git add .
|
||||||
git diff-index --quiet HEAD || git commit -am "Update formula for G-Man release ${{ env.RELEASE_VERSION }}"
|
# git diff-index --quiet HEAD || git commit -am "Update formula for G-Man release ${{ env.RELEASE_VERSION }}"
|
||||||
git push https://$TOKEN@github.com/Dark-Alex-17/homebrew-gman.git
|
# git push https://$TOKEN@github.com/Dark-Alex-17/homebrew-gman.git
|
||||||
|
#
|
||||||
publish-crate:
|
# publish-crate:
|
||||||
needs: publish-github-release
|
# needs: publish-github-release
|
||||||
name: Publish Crate
|
# name: Publish Crate
|
||||||
runs-on: ubuntu-latest
|
# runs-on: ubuntu-latest
|
||||||
steps:
|
# steps:
|
||||||
- name: Check if actor is repository owner
|
# - name: Check if actor is repository owner
|
||||||
if: ${{ github.actor != github.repository_owner && env.ACT != 'true' }}
|
# if: ${{ github.actor != github.repository_owner && env.ACT != 'true' }}
|
||||||
run: |
|
# run: |
|
||||||
echo "You are not authorized to run this workflow."
|
# echo "You are not authorized to run this workflow."
|
||||||
exit 1
|
# exit 1
|
||||||
|
#
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
with:
|
# with:
|
||||||
fetch-depth: 0
|
# fetch-depth: 0
|
||||||
|
#
|
||||||
- name: Get bumped Cargo files (Act)
|
# - name: Get bumped Cargo files (Act)
|
||||||
if: env.ACT == 'true'
|
# if: env.ACT == 'true'
|
||||||
uses: actions/download-artifact@v4
|
# uses: actions/download-artifact@v4
|
||||||
with:
|
# with:
|
||||||
name: bumped-cargo-files
|
# name: bumped-cargo-files
|
||||||
path: ${{ github.workspace }}
|
# path: ${{ github.workspace }}
|
||||||
|
#
|
||||||
- name: Ensure repository is up-to-date
|
# - name: Ensure repository is up-to-date
|
||||||
if: env.ACT != 'true'
|
# if: env.ACT != 'true'
|
||||||
run: |
|
# run: |
|
||||||
git fetch --all
|
# git fetch --all
|
||||||
git pull
|
# git pull
|
||||||
|
#
|
||||||
- name: Install Rust stable
|
# - name: Install Rust stable
|
||||||
uses: dtolnay/rust-toolchain@stable
|
# uses: dtolnay/rust-toolchain@stable
|
||||||
|
#
|
||||||
- uses: katyo/publish-crates@v2
|
# - uses: katyo/publish-crates@v2
|
||||||
if: env.ACT != 'true'
|
# if: env.ACT != 'true'
|
||||||
with:
|
# with:
|
||||||
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
# registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
|
|||||||
@@ -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).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [0.0.1] - 2025-09-10
|
## [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
|
|
||||||
|
|||||||
Generated
+1
-1
@@ -1576,7 +1576,7 @@ checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "gman"
|
name = "gman"
|
||||||
version = "0.1.0"
|
version = "0.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"argon2",
|
"argon2",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "gman"
|
name = "gman"
|
||||||
version = "0.1.0"
|
version = "0.0.1"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
authors = ["Alex Clarke <alex.j.tusa@gmail.com>"]
|
authors = ["Alex Clarke <alex.j.tusa@gmail.com>"]
|
||||||
description = "Universal secret management and injection tool"
|
description = "Universal secret management and injection tool"
|
||||||
|
|||||||
Reference in New Issue
Block a user