Skip to content

Commit

Permalink
🔧 fix: modify the release build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquidwe committed Dec 17, 2024
1 parent 1e3da90 commit f434c4b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,13 @@ jobs:
go-version: 1.22
- name: Get Manuscript CLI Version
run: |
cd cli && \
MANUSCRIPT_CLI_VERSION='v'$(go run main.go version | tr -s ' ' | awk '{print $NF}')
echo "MANUSCRIPT_CLI_VERSION=$MANUSCRIPT_CLI_VERSION" >> $GITHUB_ENV
- name: Get Git Tag Version
run: |
Git_TAG_VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
echo "Git_TAG_VERSION=$Git_TAG_VERSION" >> $GITHUB_ENV
- name: Check if versions match
run: |
if [ "${{ env.MANUSCRIPT_CLI_VERSION }}" != "${{ env.Git_TAG_VERSION }}" ]; then
echo "Versions do not match!"
exit 1
fi
echo "Versions match!"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
Expand All @@ -49,4 +43,5 @@ jobs:
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: cli

0 comments on commit f434c4b

Please sign in to comment.