Skip to content

Commit

Permalink
Merge pull request #149 from elisasre/fixpaths
Browse files Browse the repository at this point in the history
Fix file paths
  • Loading branch information
zetaab authored Dec 10, 2023
2 parents e7caf62 + fe7dd6f commit 1e9f880
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 27 deletions.
42 changes: 16 additions & 26 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,35 +47,25 @@ jobs:
- name: Build packages
run: mage go:crossBuild

- name: Upload Linux amd64 binary & checksum
- name: Make files
run: |
mkdir -p files
cp target/bin/linux/amd64/resource-advisor files/resource-advisor-linux-amd64
cp target/bin/linux/amd64/resource-advisor.sha256 files/resource-advisor-linux-amd64.sha256
cp target/bin/linux/arm64/resource-advisor files/resource-advisor-linux-arm64
cp target/bin/linux/arm64/resource-advisor.sha256 files/resource-advisor-linux-arm64.sha256
cp target/bin/darwin/amd64/resource-advisor files/resource-advisor-darwin-amd64
cp target/bin/darwin/amd64/resource-advisor.sha256 files/resource-advisor-darwin-amd64.sha256
cp target/bin/darwin/arm64/resource-advisor files/resource-advisor-darwin-arm64
cp target/bin/darwin/arm64/resource-advisor.sha256 files/resource-advisor-darwin-arm64.sha256
cp target/bin/windows/amd64/resource-advisor files/resource-advisor-windows-amd64
cp target/bin/windows/amd64/resource-advisor.sha256 files/resource-advisor-windows-amd64.sha256
- name: Upload all binaries and checksums
uses: softprops/action-gh-release@v1
with:
files: |
target/bin/linux/amd64/**
- name: Upload Linux arm64 binary & checksum
uses: softprops/action-gh-release@v1
with:
files: |
target/bin/linux/arm64/**
- name: Upload windows binary & checksum
uses: softprops/action-gh-release@v1
with:
files: |
target/bin/windows/amd64/**
- name: Upload MacOS amd64 binary & checksum
uses: softprops/action-gh-release@v1
with:
files: |
target/bin/darwin/amd64/**
- name: Upload MacOS arm64 binary & checksum
uses: softprops/action-gh-release@v1
with:
files: |
target/bin/darwin/arm64/**
files/**
- name: Notify failure
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### Installation

```bash
export PLUGIN_VERSION=1.2.0
export PLUGIN_VERSION=1.2.1

# MacOS (x86_64)
curl -sLo /usr/local/bin/kubectl-advisory https://github.com/elisasre/kubernetes-resource-advisor/releases/download/${PLUGIN_VERSION}/resource-advisor-darwin-amd64
Expand Down

0 comments on commit 1e9f880

Please sign in to comment.