From 3bcd6051916e51d533410648fb73eb333823c780 Mon Sep 17 00:00:00 2001 From: Marvin Date: Wed, 21 Oct 2020 12:35:12 -0500 Subject: [PATCH] add release.yml --- .github/workflows/release.yml | 93 +++++++++++++++++++++++++++++++++++ 1 file changed, 93 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..bbc59bf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,93 @@ +on: release +name: Build +jobs: + release-linux-386: + name: release linux/386 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: mjavier2k/go-release.action@v1.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: "386" + GOOS: linux + CGO_ENABLED: "0" + EXECUTABLE_NAME: "redfish_exporter" + EXECUTABLE_PATH: "./build/redfish_exporter" + PACKAGE: "./main.go" + release-linux-amd64: + name: release linux/amd64 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: mjavier2k/go-release.action@v1.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: amd64 + GOOS: linux + CGO_ENABLED: "0" + EXECUTABLE_NAME: "redfish_exporter" + EXECUTABLE_PATH: "./build/redfish_exporter" + PACKAGE: "./main.go" + release-darwin-386: + name: release darwin/386 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: mjavier2k/go-release.action@v1.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: "386" + GOOS: darwin + CGO_ENABLED: "0" + EXECUTABLE_NAME: "redfish_exporter" + EXECUTABLE_PATH: "./build/redfish_exporter" + PACKAGE: "./main.go" + release-darwin-amd64: + name: release darwin/amd64 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: mjavier2k/go-release.action@v1.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: amd64 + GOOS: darwin + CGO_ENABLED: "0" + EXECUTABLE_NAME: "redfish_exporter" + EXECUTABLE_PATH: "./build/redfish_exporter" + PACKAGE: "./main.go" + release-windows-386: + name: release windows/386 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: mjavier2k/go-release.action@v1.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: "386" + GOOS: windows + CGO_ENABLED: "0" + EXECUTABLE_NAME: "redfish_exporter" + EXECUTABLE_PATH: "./build/redfish_exporter" + PACKAGE: "./main.go" + release-windows-amd64: + name: release windows/amd64 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: compile and release + uses: mjavier2k/go-release.action@v1.1.2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GOARCH: amd64 + GOOS: windows + CGO_ENABLED: "0" + EXECUTABLE_NAME: "redfish_exporter" + EXECUTABLE_PATH: "./build/redfish_exporter" + PACKAGE: "./main.go"