■ ■ ■ ■ ■ ■
.github/workflows/release.yml
| skipped 71 lines |
72 | 72 | | uses: actions/setup-go@v3 |
73 | 73 | | with: |
74 | 74 | | go-version: 1.18 |
| 75 | + | - name: Setup Gon |
| 76 | + | run: brew install mitchellh/gon/gon |
| 77 | + | - name: Import Code-Signing Certificates |
| 78 | + | uses: Apple-Actions/import-codesign-certs@v1 |
| 79 | + | with: |
| 80 | + | # The certificates in a PKCS12 file encoded as a base64 string |
| 81 | + | p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }} |
| 82 | + | # The password used to import the PKCS12 file. |
| 83 | + | p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }} |
75 | 84 | | - name: Run GoReleaser |
76 | 85 | | uses: goreleaser/goreleaser-action@v3 |
77 | 86 | | with: |
| skipped 2 lines |
80 | 89 | | args: release --skip-publish -f ./goreleaser/darwin.yaml |
81 | 90 | | env: |
82 | 91 | | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 92 | + | AC_USERNAME: ${{ secrets.AC_USERNAME }} |
| 93 | + | AC_PASSWORD: ${{ secrets.AC_PASSWORD }} |
83 | 94 | | - name: Upload |
84 | 95 | | uses: actions/upload-artifact@v3 |
85 | 96 | | with: |
86 | 97 | | name: curio-darwin |
87 | | - | path: dist/curio* |
| 98 | + | path: | |
| 99 | + | dist/curio*.tar.gz |
| 100 | + | dist/curio*checksums.txt |
88 | 101 | | |
89 | 102 | | publish: |
90 | | - | needs: [tag, build-darwin, build-linux] |
| 103 | + | needs: [tag, build-linux, build-darwin] |
91 | 104 | | runs-on: ubuntu-latest |
92 | 105 | | steps: |
93 | 106 | | - uses: actions/checkout@v3 |
| skipped 18 lines |
112 | 125 | | - name: Merge checksum file |
113 | 126 | | run: | |
114 | 127 | | cd ./curio-build |
115 | | - | cat ./darwin/curio*checksums.txt >> checksums.txt |
116 | 128 | | cat ./linux/curio*checksums.txt >> checksums.txt |
| 129 | + | cat ./darwin/curio*checksums.txt >> checksums.txt |
117 | 130 | | rm ./darwin/curio*checksums.txt |
118 | 131 | | rm ./linux/curio*checksums.txt |
119 | 132 | | - name: Release |
| skipped 6 lines |