From 3152ceb2387beff62f79aaa78d000335654a41ad Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Wed, 12 Apr 2023 11:50:06 +0200 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 116 ++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..84525c7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,116 @@ +# .github/workflows/release.yaml +on: release +name: Build Release +jobs: + release-linux-386: + name: release linux/386 + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: Allan-Nava/go-release.action@v1.4.8 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: "386" + GOOS: linux + EXTRA_FILES: "LICENSE" + #CMD_PATH: "" + #BUILD_ARGS: "" + #PROJECT_NAME: "" + release-linux-amd64: + name: release linux/amd64 + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: Allan-Nava/go-release.action@v1.4.8 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: amd64 + GOOS: linux + EXTRA_FILES: "LICENSE" + #CMD_PATH: "" + #BUILD_ARGS: "" + #PROJECT_NAME: "" + release-linux-arm: + name: release linux/386 + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: Allan-Nava/go-release.action@v1.4.8 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: "arm" + GOOS: linux + EXTRA_FILES: "LICENSE" + #CMD_PATH: "" + #BUILD_ARGS: "" + #PROJECT_NAME: "" + release-linux-arm64: + name: release linux/amd64 + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: Allan-Nava/go-release.action@v1.4.7 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: arm64 + GOOS: linux + EXTRA_FILES: "LICENSE" + #CMD_PATH: "" + #BUILD_ARGS: "" + #PROJECT_NAME: "" + release-darwin-amd64: + name: release darwin/amd64 + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: Allan-Nava/go-release.action@v1.4.8 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: amd64 + GOOS: darwin + EXTRA_FILES: "LICENSE" + #CMD_PATH: "" + #BUILD_ARGS: "" + #PROJECT_NAME: "" + release-windows-386: + name: release windows/386 + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: Allan-Nava/go-release.action@v1.4.8 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: "386" + GOOS: windows + EXTRA_FILES: "LICENSE" + CMD_PATH: "cmd/main.go" + BUILD_ARGS: "-o sprite-preview" + PROJECT_NAME: "sprite-preview" + release-windows-amd64: + name: release windows/amd64 + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: Allan-Nava/go-release.action@v1.4.8 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: amd64 + GOOS: windows + EXTRA_FILES: "LICENSE" + #CMD_PATH: "" + #BUILD_ARGS: "" + #PROJECT_NAME: ""