Skip to content

Commit

Permalink
add release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mjavier2k authored Oct 21, 2020
1 parent 34aafa4 commit 3bcd605
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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"

0 comments on commit 3bcd605

Please sign in to comment.