Skip to content

Commit

Permalink
feat: update release artifact names
Browse files Browse the repository at this point in the history
  • Loading branch information
olup committed Jul 29, 2022
1 parent ad8c921 commit e27ea6c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/build-next.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
run: |
Set-Item -Path Env:CGO_LDFLAGS -Value "-LD:/a/lunii-admin/lunii-admin/bindings/windows/lib"
Set-Item -Path Env:CGO_CFLAGS -Value "-ID:/a/lunii-admin/lunii-admin/bindings/windows/include"
wails build -debug -o lunii-admin-windows.exe -ldflags "-v '-extldflags=-static -lm'"
wails build -debug -o lunii-admin_windows_amd64.exe -ldflags "-v '-extldflags=-static -lm'"
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
replacesArtifacts: true
artifacts: "build/bin/lunii-admin-windows.exe"
artifacts: "build/bin/lunii-admin_windows_amd64.exe"
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
tag: next
Expand Down Expand Up @@ -86,13 +86,13 @@ jobs:
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest

- name: Build
run: wails build -debug -o lunii-admin-linux
run: wails build -debug -o lunii-admin_linux_amd64

- uses: ncipollo/release-action@v1
with:
allowUpdates: true
replacesArtifacts: true
artifacts: "build/bin/lunii-admin-linux"
artifacts: "build/bin/lunii-admin_linux_amd64"
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
tag: next
Expand Down Expand Up @@ -133,16 +133,14 @@ jobs:
- name: Build
run: wails build -debug

- name: Create DMG
run: |
brew install create-dmg
create-dmg lunii-admin-macos.dmg build/bin/lunii-admin.app
- name: Create Zip
run: ditto -c -k --sequesterRsrc --keepParent build/bin/lunii-admin.app lunii-admin_darwin_amd64.zip

- uses: ncipollo/release-action@v1
with:
allowUpdates: true
replacesArtifacts: true
artifacts: "lunii-admin-macos.dmg"
artifacts: "lunii-admin_darwin_amd64.zip"
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
tag: next
16 changes: 7 additions & 9 deletions .github/workflows/build-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ jobs:
run: |
Set-Item -Path Env:CGO_LDFLAGS -Value "-LD:/a/lunii-admin/lunii-admin/bindings/windows/lib"
Set-Item -Path Env:CGO_CFLAGS -Value "-ID:/a/lunii-admin/lunii-admin/bindings/windows/include"
wails build -o lunii-admin-windows.exe -ldflags "-v '-extldflags=-static -lm'"
wails build -o lunii-admin_windows_amd64.exe -ldflags "-v '-extldflags=-static -lm'"
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
replacesArtifacts: true
artifacts: "build/bin/lunii-admin-windows.exe"
artifacts: "build/bin/lunii-admin_windows_amd64.exe"
token: ${{ secrets.GITHUB_TOKEN }}

build-linux:
Expand Down Expand Up @@ -84,13 +84,13 @@ jobs:
run: go install github.com/wailsapp/wails/v2/cmd/wails@latest

- name: Build
run: wails build -o lunii-admin-linux
run: wails build -o lunii-admin_linux_amd64

- uses: ncipollo/release-action@v1
with:
allowUpdates: true
replacesArtifacts: true
artifacts: "build/bin/lunii-admin-linux"
artifacts: "build/bin/lunii-admin_linux_amd64"
token: ${{ secrets.GITHUB_TOKEN }}

build-macos-amd:
Expand Down Expand Up @@ -129,14 +129,12 @@ jobs:
- name: Build
run: wails build

- name: Create DMG
run: |
brew install create-dmg
create-dmg lunii-admin-macos.dmg build/bin/lunii-admin.app
- name: Create Zip
run: ditto -c -k --sequesterRsrc --keepParent build/bin/lunii-admin.app lunii-admin_darwin_amd64.zip

- uses: ncipollo/release-action@v1
with:
allowUpdates: true
replacesArtifacts: true
artifacts: "lunii-admin-macos.dmg"
artifacts: "lunii-admin_darwin_amd64.zip"
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ github.com/nwaples/rardecode/v2 v2.0.0-beta.2/go.mod h1:yntwv/HfMc/Hbvtq9I19D1n5
github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=
github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
github.com/olup/lunii-cli v0.0.0-20220727052208-9ff36a20c348 h1:srwA+Cs1YBZdbwlK6YGQDLrqZEcpYfgDErNCUV4/pNM=
github.com/olup/lunii-cli v0.0.0-20220727052208-9ff36a20c348/go.mod h1:oSGXGkGLrEr8iSTZzIakQ4pHyKhEbltFUhKh0s60csA=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
Expand Down

0 comments on commit e27ea6c

Please sign in to comment.