Skip to content

Commit

Permalink
please work
Browse files Browse the repository at this point in the history
  • Loading branch information
tinaboyce committed Aug 1, 2024
1 parent a9aefd1 commit 80261b7
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/choco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
id: cacher
uses: actions/cache@v3
with:
path: "~/.local/share/powershell/Modules"
path: "C:\Users\runneradmin\Documents\PowerShell\Modules"
key: ${{ runner.os }}-InvokeBuild

- name: Install required PowerShell modules
Expand All @@ -57,9 +57,7 @@ jobs:
- name: Build
run: |
echo ${env.VERSION}
echo "${env.VERSION}"
go build -o "bin/saml2aws.exe" -ldflags "-X main.Version=${env.VERSION}" "./cmd/saml2aws"
go build -o "bin/saml2aws.exe" -ldflags "-X main.Version=${{ env.VERSION }}" "./cmd/saml2aws"
- name: Invoke build script
env:
Expand All @@ -71,12 +69,7 @@ jobs:
run: go test -v .

- name: Deploy
env:
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
VERSION: ${{ env.VERSION }}
run: |
echo $VERSION
echo "$VERSION"
echo ${VERSION}
choco apiKey --key $CHOCOLATEY_API_KEY --source "https://push.chocolatey.org/"
choco push ./choco/saml2aws.$VERSION.nupkg --source "https://push.chocolatey.org/"
echo ${{ env.VERSION }}
choco apiKey --key ${{ secrets.CHOCOLATEY_API_KEY }} --source "https://push.chocolatey.org/"
choco push ./choco/saml2aws.${{ env.VERSION }}.nupkg --source "https://push.chocolatey.org/"

0 comments on commit 80261b7

Please sign in to comment.