Skip to content

Commit 943cc16

Browse files
remove: multiple os + arch
1 parent 3bbfb1c commit 943cc16

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
goos: [linux, darwin, windows]
16-
goarch: [amd64, arm64, 386]
15+
goos: [linux, windows]
16+
goarch: [amd64, arm64]
1717

1818
steps:
1919
- name: Checkout code
@@ -26,24 +26,24 @@ jobs:
2626

2727
- name: Build binary
2828
run: |
29-
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o myapp-${{ matrix.goos }}-${{ matrix.goarch }}
29+
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o bridgeftp-${{ matrix.goos }}-${{ matrix.goarch }}
3030
3131
- name: Archive binary
3232
run: |
33-
zip myapp-${{ matrix.goos }}-${{ matrix.goarch }}.zip myapp-${{ matrix.goos }}-${{ matrix.goarch }}
33+
zip bridgeftp-${{ matrix.goos }}-${{ matrix.goarch }}.zip bridgeftp-${{ matrix.goos }}-${{ matrix.goarch }}
3434
3535
- name: Create GitHub Release
3636
id: create_release
3737
uses: softprops/action-gh-release@v1
3838
with:
39-
files: myapp-${{ matrix.goos }}-${{ matrix.goarch }}.zip
39+
files: bridgeftp-${{ matrix.goos }}-${{ matrix.goarch }}.zip
4040
env:
41-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
GITHUB_TOKEN: ${{ secrets.RELEASE_CREATION_TOKEN }}
4242

4343
- name: Upload release assets
4444
uses: actions/upload-release-asset@v1
4545
with:
4646
upload_url: ${{ steps.create_release.outputs.upload_url }}
47-
asset_path: ./myapp-${{ matrix.goos }}-${{ matrix.goarch }}.zip
48-
asset_name: myapp-${{ matrix.goos }}-${{ matrix.goarch }}.zip
47+
asset_path: ./bridgeftp-${{ matrix.goos }}-${{ matrix.goarch }}.zip
48+
asset_name: bridgeftp-${{ matrix.goos }}-${{ matrix.goarch }}.zip
4949
asset_content_type: application/zip

0 commit comments

Comments
 (0)