From 2b6cd13728bf653346760739853657fd5e8ae172 Mon Sep 17 00:00:00 2001 From: Christopher Lowenthal Date: Fri, 21 Oct 2022 10:59:53 -0400 Subject: [PATCH] adds release workflow with basic build step --- .github/workflows/release.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 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 000000000..23476d7e9 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,48 @@ +name: CD + +on: + push: + branches: ["master"] + + workflow_dispatch: + +jobs: + # release: + # runs-on: ubuntu-latest + # outputs: + # version: ${{ steps.semrel.outputs.version }} + + # steps: + # - name: get version + + + build: + # needs: release + runs-on: ubuntu-latest + strategy: + matrix: + goos: + - "darwin" + - "linux" + goarch: + - "amd64" + - "arm64" + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-go@v3 + with: + go-version: "^1.19.1" + + - name: build + run: GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o ./build/${{ matrix.goos }}-${{ matrix.goarch }} + + # - name: Upload binaries to release + # uses: svenstaro/upload-release-action@v2 + # with: + # repo_token: ${{ secrets.GITHUB_TOKEN }} + # file: ./build/${{ matrix.goos }}-${{ matrix.goarch }} + # asset_name: ${{ matrix.goos }}-${{ matrix.goarch }} + # tag: ${{ github.ref }} +