From dffa6bfa56a94d1f6fa52b996fb46df914e46a4d Mon Sep 17 00:00:00 2001 From: Hunter Thompson Date: Tue, 7 Sep 2021 23:59:19 +0530 Subject: [PATCH] chore: upload binary action --- .github/workflows/binary.yaml | 19 +++++++++++++++++++ .github/workflows/test.yaml | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/binary.yaml diff --git a/.github/workflows/binary.yaml b/.github/workflows/binary.yaml new file mode 100644 index 0000000..54b716a --- /dev/null +++ b/.github/workflows/binary.yaml @@ -0,0 +1,19 @@ +--- +name: upload binary + +on: + release: + types: [published] + +jobs: + release: + name: release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: wangyoucao577/go-release-action@v1.19 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: linux + goarch: amd64 + binary_name: kube2cdk8s diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bc2b322..84cd139 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -18,4 +18,4 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - name: Test - run: go test -v -cover ./... + run: curl -fsSL https://get.pulumi.com | sh && ~/.pulumi/bin/pulumi plugin install resource kubernetes v2.4.2 && go test -v -cover ./...