Skip to content

Fix github action

Fix github action #5

Workflow file for this run

name: optable-pair-cli create release
on:
push:
tags:
- v*
permissions:
contents: write
env:
GOPATH: ${{ github.workspace }}
jobs:
build-release:
name: Release pushed tag
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: '${{ env.GOPATH }}/go.mod'
- name: Install dependencies
run: go get ./...
- name: build
run: make release
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes \
release/opair-darwin \
release/opair-linux-amd64 \
release/opair-windows-amd64.exe