Skip to content

build: add release.yml (GitHub actions pipeline) #1

build: add release.yml (GitHub actions pipeline)

build: add release.yml (GitHub actions pipeline) #1

Workflow file for this run

name: Main
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '>=1.22'
- name: Build Binary
- run: go build -ldflags "-X main.version=${{ github.ref_name }}" -o ./bin/journeys.api cmd/journeys/journeys.go
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }}
files: |
./bin/journeys.api