bugfix: simply specifying the build output

This commit is contained in:
Baipyrus 2024-09-01 13:53:50 +02:00 committed by GitHub
parent 2c421f4596
commit aaf45bca3d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,28 +16,25 @@ env:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sed -En 's/^go (.*)$/GO_VERSION=\1/p' go.mod >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "${{ env.GO_VERSION }}"
- name: Install dependencies
run: |
go get .
- name: Build project
run: go build -o ProxySwitcher.exe -v ./...
run: go build -o build/ -v ./...
- name: List contents
run: ls -laRI .git
- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: ProxySwitcher Executable
path: '**/ProxySwitcher.exe'
path: build/ProxySwitcher.exe