diff --git a/.github/workflows/go-publish.yml b/.github/workflows/go-publish.yml index 82b2a39..ff83061 100644 --- a/.github/workflows/go-publish.yml +++ b/.github/workflows/go-publish.yml @@ -39,22 +39,22 @@ jobs: - name: Linux build run: | - go build -o cmd/${{ github.event.repository.name }} ./cmd/${{ github.event.repository.name }}/ - cd ./cmd + go build -o /tmp/${{ github.event.repository.name }} ./cmd/${{ github.event.repository.name }}/ + cd /tmp tar -czf ${{ github.event.repository.name }}-linux-${{ github.event.release.tag_name }}.tar.gz ./${{ github.event.repository.name }} rm ./${{ github.event.repository.name }} - name: Windows build run: | - GOOS=windows GOARCH=amd64 go build -o cmd/${{ github.event.repository.name }}.exe ./cmd/${{ github.event.repository.name }}/ - cd ./cmd + GOOS=windows GOARCH=amd64 go build -o /tmp/${{ github.event.repository.name }}.exe ./cmd/${{ github.event.repository.name }}/ + cd /tmp zip ${{ github.event.repository.name }}-windows-${{ github.event.release.tag_name }}.zip ./${{ github.event.repository.name }}.exe rm ./${{ github.event.repository.name }}.exe - name: Darwin build run: | - GOOS=darwin GOARCH=amd64 go build -o cmd/${{ github.event.repository.name }} ./cmd/${{ github.event.repository.name }}/ - cd ./cmd + GOOS=darwin GOARCH=amd64 go build -o /tmp/${{ github.event.repository.name }} ./cmd/${{ github.event.repository.name }}/ + cd /tmp tar -czf ${{ github.event.repository.name }}-darwin-${{ github.event.release.tag_name }}.tar.gz ./${{ github.event.repository.name }} rm ./${{ github.event.repository.name }} @@ -62,9 +62,9 @@ jobs: uses: softprops/action-gh-release@v1 with: files: | - cmd/${{ github.event.repository.name }}-darwin-${{ github.event.release.tag_name }}.tar.gz - cmd/${{ github.event.repository.name }}-linux-${{ github.event.release.tag_name }}.tar.gz - cmd/${{ github.event.repository.name }}-windows-${{ github.event.release.tag_name }}.zip + /tmp/${{ github.event.repository.name }}-darwin-${{ github.event.release.tag_name }}.tar.gz + /tmp/${{ github.event.repository.name }}-linux-${{ github.event.release.tag_name }}.tar.gz + /tmp/${{ github.event.repository.name }}-windows-${{ github.event.release.tag_name }}.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -72,13 +72,13 @@ jobs: uses: actions/upload-artifact@v3 with: name: ${{ github.event.repository.name }}-linux-${{ github.event.release.tag_name }}.tar.gz - path: cmd/${{ github.event.repository.name }}-linux-${{ github.event.release.tag_name }}.tar.gz + path: /tmp/${{ github.event.repository.name }}-linux-${{ github.event.release.tag_name }}.tar.gz - name: Upload windows artifact uses: actions/upload-artifact@v3 with: name: ${{ github.event.repository.name }}-windows-${{ github.event.release.tag_name }}.zip - path: cmd/${{ github.event.repository.name }}-windows-${{ github.event.release.tag_name }}.tar.gz + path: /tmp/${{ github.event.repository.name }}-windows-${{ github.event.release.tag_name }}.tar.gz ########################## # Stop deployment #