From de2bfbe6218703291fd8b5b71819f6094db4cd38 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sun, 1 Sep 2024 16:08:24 +0200 Subject: [PATCH] test: specifying artifact download path --- .github/workflows/publish.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eb7259e..25e1491 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,16 +7,16 @@ on: push: tags: 'v*' -env: - GOOS: windows - GOARCH: amd64 - jobs: build: runs-on: ubuntu-latest + env: + GOOS: windows + GOARCH: amd64 + steps: - - name: Checkout code + - name: Checkout repository uses: actions/checkout@v4 - name: Get GoLang version @@ -45,15 +45,19 @@ jobs: needs: build steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Download artifact uses: actions/download-artifact@v4 with: name: ProxySwitcher + path: '${{ github.workspace }}/artifacts/' - name: Create release env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - gh release create "${{ github.event.workflow_run.head_ref }}" \ - --title "Release ${{ github.event.workflow_run.head_ref }}" \ - ProxySwitcher + gh release create "${{ github.ref_name }}" \ + --title "Release ${{ github.ref_name }}" \ + '${{ github.workspace }}/artifacts/'