|
7 | 7 |
|
8 | 8 |
|
9 | 9 | jobs: |
10 | | - releases-matrix: |
11 | | - name: Release Go Binaries |
| 10 | + release-linux-windows: |
| 11 | + name: Release for Linux and Windows |
12 | 12 | runs-on: ubuntu-latest |
13 | 13 | strategy: |
14 | 14 | matrix: |
15 | | - goos: [darwin, linux, windows] |
| 15 | + goos: [linux, windows] |
16 | 16 | goarch: [amd64, arm64] |
17 | | - exclude: |
18 | | - - goos: windows |
19 | | - goarch: arm64 |
20 | 17 | steps: |
21 | 18 |
|
22 | 19 | - uses: actions/checkout@v4 |
|
30 | 27 | project_path: "./cmd/" |
31 | 28 | extra_files: README.md LICENSE |
32 | 29 | md5sum: FALSE |
33 | | - sha256sum: TRUE |
| 30 | + sha256sum: FALSE |
| 31 | + |
| 32 | + |
| 33 | + release-macos: |
| 34 | + name: Release for macOS |
| 35 | + runs-on: macos-latest |
| 36 | + steps: |
| 37 | + |
| 38 | + - uses: actions/checkout@v4 |
| 39 | + |
| 40 | + - uses: actions/setup-go@v5 |
| 41 | + with: |
| 42 | + go-version-file: go.mod |
| 43 | + |
| 44 | + - name: Compile ARM64 |
| 45 | + run: | |
| 46 | + GOOS=darwin GOARCH=arm64 make compile |
| 47 | + mv ./delete-dynamodb-items ./delete-dynamodb-items-arm64 |
| 48 | +
|
| 49 | + - name: Compile AMD4 |
| 50 | + run: | |
| 51 | + GOOS=darwin GOARCH=amd64 make compile |
| 52 | + mv ./delete-dynamodb-items ./delete-dynamodb-items-amd64 |
| 53 | +
|
| 54 | + - name: Universal binary |
| 55 | + run: lipo -create -output delete-dynamodb-items ./delete-dynamodb-items-arm64 ./delete-dynamodb-items-amd64 |
| 56 | + |
| 57 | + - uses: apple-actions/import-codesign-certs@v3 |
| 58 | + with: |
| 59 | + p12-file-base64: ${{ secrets.CERTIFICATES_P12 }} |
| 60 | + p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }} |
| 61 | + |
| 62 | + - uses: halprin/macos-sign-package-notarize@v1 |
| 63 | + with: |
| 64 | + path-to-binary: ./delete-dynamodb-items |
| 65 | + signing-identity: ${{ secrets.SIGNING_IDENTITY }} |
| 66 | + apple-id: ${{ secrets.APPLE_ID }} |
| 67 | + app-specific-password: ${{ secrets.APP_SPECIFIC_PASSWORD }} |
| 68 | + apple-developer-team-id: ${{ secrets.APPLE_DEVELOPER_TEAM_ID }} |
| 69 | + extra-files: README.md LICENSE |
| 70 | + archive-disk-name: Delete DynamoDB Items |
| 71 | + archive-file-path: ./delete-dynamodb-items-${{ github.event.release.tag_name }}-macos.dmg |
| 72 | + |
| 73 | + - name: Upload Release Asset |
| 74 | + run: gh release upload ${{ github.event.release.tag_name }} ./delete-dynamodb-items-${{ github.event.release.tag_name }}-macos.dmg --clobber |
| 75 | + env: |
| 76 | + GH_TOKEN: ${{ github.token }} |
0 commit comments