From 12bda085e70eae564b14ec1d869e5272abf544af Mon Sep 17 00:00:00 2001 From: CoderBear801 Date: Fri, 13 Mar 2020 14:38:37 -0700 Subject: [PATCH] feat: add release action for oasis service issue: https://github.com/Telenav/osrm-backend/issues/226 --- .github/workflows/release-go-cmd-oasis.yml | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/release-go-cmd-oasis.yml diff --git a/.github/workflows/release-go-cmd-oasis.yml b/.github/workflows/release-go-cmd-oasis.yml new file mode 100644 index 00000000000..489fbafaa3a --- /dev/null +++ b/.github/workflows/release-go-cmd-oasis.yml @@ -0,0 +1,34 @@ +name: Release cmd/oasis + +on: + release: + types: [created] + +env: + CMD_PATH: ./integration/cmd/oasis + BINARY_NAME: oasis + + +jobs: + releases-matrix: + name: Release cmd/oasis + runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux, windows, darwin] + goarch: ["386", amd64] + exclude: + # windows/386 and darwin/386 seems useless + - goarch: "386" + goos: windows + - goarch: "386" + goos: darwin + steps: + - uses: actions/checkout@v2 + - uses: wangyoucao577/go-release-action@v1.2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + project_path: "${{ env.CMD_PATH }}" + binary_name: "${{ env.BINARY_NAME }}"