From e541fb49e67de01830a779757dd34b1f19a145df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gonz=C3=A1lez=20Lopes?= Date: Thu, 30 Sep 2021 12:59:02 +0200 Subject: [PATCH] add basic action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel González Lopes --- .github/workflows/release.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..76827b4 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,24 @@ +--- +name: "release" + +on: + release: + types: + - published + +jobs: + build: + name: "Build" + runs-on: ubuntu-latest + steps: + - name: Check Out Repo + uses: actions/checkout@v2 + + - uses: actions/setup-go@v2 + with: + go-version: '1.16.7' + - run: go install go.k6.io/xk6/cmd/xk6@latest + - run: xk6 build --with github.com/grafana/xk6-client-prometheus-remote@latest + - name: Get the tag name + run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV + - run: mv k6 k6_${{ env.TAG }}_linux_amd64