diff --git a/.github/workflows/push-update.yaml b/.github/workflows/push-update.yaml index 5f87150..2808a16 100644 --- a/.github/workflows/push-update.yaml +++ b/.github/workflows/push-update.yaml @@ -41,6 +41,8 @@ jobs: cd ./artifact/windows-amd64 ls -R mv geemo.exe ../../binaries/windows-amd64 + cd ../../artifact/linux-amd64 + mv geemo ../../binaries/linux-amd64 - name: Install go-selfupdate run: go install github.com/sanbornm/go-selfupdate/cmd/go-selfupdate@latest diff --git a/.github/workflows/release-app.yaml b/.github/workflows/release-app.yaml index 0f8475a..1577bcc 100644 --- a/.github/workflows/release-app.yaml +++ b/.github/workflows/release-app.yaml @@ -17,36 +17,59 @@ jobs: with: go-version: "1.20" - - uses: dAppServer/wails-build-action@v2.2 + - name: Build (Windows) + uses: dAppServer/wails-build-action@v2.2 with: build-name: geemo.exe build-platform: windows/amd64 package: false nsis: false - - name: Upload Artifact in GOOS-GOARCH format + - name: Build (Linux) + uses: dAppServer/wails-build-action@v2.2 + with: + build-name: geemo.exe + build-platform: windows/amd64 + package: false + nsis: false + + - name: Upload Windows Artifact in GOOS-GOARCH format uses: actions/upload-artifact@v3 with: name: windows-amd64 path: ./build/bin/geemo.exe + - name: Upload Linux Artifact in GOOS-GOARCH format + uses: actions/upload-artifact@v3 + with: + name: linux-amd64 + path: ./build/bin/geemo + release: name: Release needs: build runs-on: ubuntu-20.04 steps: - - name: Download Artifact + - name: Download Windows Artifact uses: actions/download-artifact@v2 with: name: windows-amd64 + - name: Download Linux Artifact + uses: actions/download-artifact@v2 + with: + name: linux-amd64 + - name: Zip run: | - zip -r geemo-${{github.ref_name}}.zip geemo.exe + zip -r geemo-windows-${{github.ref_name}}.zip geemo.exe + zip -r geemo-linux-${{github.ref_name}}.zip geemo - name: Release uses: softprops/action-gh-release@v1 with: - files: geemo-${{github.ref_name}}.zip draft: true - token: ${{ secrets.PRIVATE_REPO_TOKEN }} \ No newline at end of file + token: ${{ secrets.PRIVATE_REPO_TOKEN }} + files: | + geemo-windows-${{github.ref_name}}.zip + geemo-linux-${{github.ref_name}}.zip \ No newline at end of file