Skip to content

Commit

Permalink
added release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayclifford345 committed Jan 13, 2025
1 parent 699186b commit 29c8416
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion docs/examples/sandbox-transformer-walk-through.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29c8416

Please sign in to comment.