Skip to content

fix: fix install script for mac os #44

fix: fix install script for mac os

fix: fix install script for mac os #44

Workflow file for this run

name: Tag Version
on:
push:
branches:
- main
paths:
- 'packages/meta/version.go'
jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
- name: Set up Git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Extract VERSION
id: extract_version
run: |
VERSION=$(grep -oP 'VERSION\s*=\s*"\K[^"]+' packages/meta/version.go)
echo "VERSION=$VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Create Git tag
run: |
git tag -a "v$VERSION" -m "Release version $VERSION"
- name: Push Git tag
env:
GH_PAT: ${{ secrets.GH_PAT }}
run: |
git push --tags