Skip to content

Commit

Permalink
fix devtools auto opening
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilsen84 committed Feb 17, 2023
1 parent f80dc3e commit 5e43b1f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ jobs:
- { runner: windows-latest, name: windows }
- { runner: macos-latest, name: mac }
- { runner: ubuntu-latest, name: linux }
include:
- exe: lunar-launcher-inject-${{ matrix.platform.name }}-${{ github.event.release.name }}${{ matrix.platform.name == 'windows' && '.exe' || '' }}

runs-on: ${{ matrix.platform.runner }}
steps:
Expand All @@ -28,9 +26,14 @@ jobs:
go-version: '1.20'

- name: Build
run: GOARCH=amd64 go build -v -ldflags '-s -w' -o ${{ matrix.exe }}
id: build
run: |
artifact=lunar-launcher-inject-${{ matrix.platform.name }}-${{ github.event.release.name }}${{ matrix.platform.name == 'windows' && '.exe' || '' }}
echo "ARTIFACT=$artifact" >> $GITHUB_OUTPUT
GOARCH=amd64 go build -v -ldflags '-s -w' -o $artifact
- name: Upload Executable
run: gh release upload ${GITHUB_REF_NAME} ${{ matrix.exe }}
run: gh release upload ${GITHUB_REF_NAME} ${{ steps.build.outputs.ARTIFACT }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5e43b1f

Please sign in to comment.