From 0cc6a1f5770dccf650f9879390aafd485a6fa9c5 Mon Sep 17 00:00:00 2001 From: Jan Taczanowski Date: Thu, 20 Jul 2023 01:06:03 +0200 Subject: [PATCH] update GH actions, update Go to newest version --- .github/workflows/build-artifact-on-push.yml | 10 +++++----- .github/workflows/create-release-when-new-tag.yml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-artifact-on-push.yml b/.github/workflows/build-artifact-on-push.yml index 16cb79b..6c77ec9 100644 --- a/.github/workflows/build-artifact-on-push.yml +++ b/.github/workflows/build-artifact-on-push.yml @@ -5,24 +5,24 @@ jobs: name: Build and upload artifact on push runs-on: windows-2019 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@latest + - uses: actions/setup-go@latest with: - go-version: '1.18.4' # The Go version to download (if necessary) and use. + go-version: '1.20.6' # The Go version to download (if necessary) and use. - run: go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo - run: $Env:Path+= ";" + $Env:GOPATH + "\bin"; go generate - run: go build -ldflags="-H windowsgui" -o WiFi-export-import-${{ github.sha }}-x64.exe - run: $Env:GOARCH="386"; go build -ldflags="-H windowsgui" -o WiFi-export-import-${{ github.sha }}-x86.exe - name: Upload Artifact (x64) - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@latest with: name: WiFi-export-import-${{ github.sha }}-x64.exe.zip path: ./WiFi-export-import-${{ github.sha }}-x64.exe retention-days: 5 - name: Upload Artifact (x86) - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@latest with: name: WiFi-export-import-${{ github.sha }}-x86.exe.zip path: ./WiFi-export-import-${{ github.sha }}-x86.exe diff --git a/.github/workflows/create-release-when-new-tag.yml b/.github/workflows/create-release-when-new-tag.yml index 41be932..3691bf4 100644 --- a/.github/workflows/create-release-when-new-tag.yml +++ b/.github/workflows/create-release-when-new-tag.yml @@ -9,10 +9,10 @@ jobs: name: Build and upload artifact when new tag runs-on: windows-2019 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-go@v3 + - uses: actions/checkout@latest + - uses: actions/setup-go@latest with: - go-version: '1.18.4' # The Go version to download (if necessary) and use. + go-version: '1.20.6' # The Go version to download (if necessary) and use. - run: go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo - run: $Env:Path+= ";" + $Env:GOPATH + "\bin"; go generate - run: go build -ldflags="-X 'main.Version=${{github.ref_name}}' -H windowsgui" -o WiFi-export-import-${{github.ref_name}}-x64.exe @@ -32,7 +32,7 @@ jobs: - name: Upload Release Asset (x64) id: upload-release-asset-x64 - uses: actions/upload-release-asset@v1 + uses: actions/upload-release-asset@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -43,7 +43,7 @@ jobs: - name: Upload Release Asset (x84) id: upload-release-asset-x86 - uses: actions/upload-release-asset@v1 + uses: actions/upload-release-asset@latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: