From 29c8416101c906cc74b0fa5b157694121a465921 Mon Sep 17 00:00:00 2001 From: Jayclifford345 Date: Mon, 13 Jan 2025 15:48:36 +0000 Subject: [PATCH] added release workflow --- .github/workflows/release.yml | 32 +++++++++++++++++++ .../sandbox-transformer-walk-through.md | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..63b1507 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: Build and Release Transformer + +on: + push: + tags: + - 'v*' # Trigger the workflow when a tag matching 'v*' is pushed + workflow_dispatch: # Allows manual triggering + +jobs: + build-and-release: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.23' # Adjust this based on the version you need + + - name: Build transformer + run: | + cd tools/transformer + go build -o transformer + + - name: Create release + uses: softprops/action-gh-release@v1 + with: + files: tools/transformer/transformer + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/docs/examples/sandbox-transformer-walk-through.md b/docs/examples/sandbox-transformer-walk-through.md index ff8dd84..031f74c 100644 --- a/docs/examples/sandbox-transformer-walk-through.md +++ b/docs/examples/sandbox-transformer-walk-through.md @@ -60,7 +60,7 @@ The Sandbox Transformer is written in Go, so you will need to have Go installed ## Clone the repository -First, you need to clone the repository to your local machine. You can do this by running the following command: +You will also need to clone the repository to your local machine. You can do this by running the following command: ```bash git clone https://github.com/grafana/killercoda.git && cd killercoda