fix: fix install script for mac os #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |