This repository has been archived by the owner on Aug 24, 2024. It is now read-only.
Merge pull request #6 from Nitamet/fix-settings #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
branches: | |
- main | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
- name: Build (Windows) | |
uses: dAppServer/[email protected] | |
with: | |
build-name: geemo.exe | |
build-platform: windows/amd64 | |
package: false | |
nsis: false | |
- name: Build (Linux) | |
uses: dAppServer/[email protected] | |
with: | |
build-name: geemo | |
build-platform: linux/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 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-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: | |
draft: true | |
token: ${{ secrets.PRIVATE_REPO_TOKEN }} | |
files: | | |
geemo-windows-${{github.ref_name}}.zip | |
geemo-linux-${{github.ref_name}}.zip |