Skip to content

Commit

Permalink
Enable macos release
Browse files Browse the repository at this point in the history
  • Loading branch information
undera committed Apr 4, 2024
1 parent af6cb0b commit debe390
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.22.2
- name: Unit tests
Expand All @@ -36,13 +36,13 @@ jobs:
args: release --parallelism 1 --snapshot --clean
- name: Test Binary is Runnable
run: "dist/build_win_and_linux_linux_amd64_v1/komocli --help"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: binaries
path: dist/
retention-days: 1
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.4.0
uses: golangci/golangci-lint-action@v4
with:
# version: latest
# skip-go-installation: true
Expand All @@ -54,9 +54,9 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.22.2
- name: Prepare keys
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Test Binary is Signed
run: |
codesign -dv dist/build_macos_darwin_arm64/komocli
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: binaries-mac
path: dist/
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

release:
needs: pre_release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.22.2
- name: git cleanup
Expand All @@ -36,9 +36,9 @@ jobs:
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: 1.22.2
- name: Prepare keys
Expand Down Expand Up @@ -78,6 +78,7 @@ jobs:
version: latest
args: release --config .goreleaser-mac.yml --parallelism 1 --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MACOS_NOTARY_APPLE_ID: ${{ secrets.APPLE_ID_USERNAME }}
MACOS_NOTARY_TEAM_ID: ${{ secrets.APPLE_NOTARY_TEAM_ID }}
MACOS_NOTARY_PASSWORD: ${{ secrets.APP_SPECIFIC_PASSWORD }}
Expand Down

0 comments on commit debe390

Please sign in to comment.