Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hellovai committed Nov 6, 2023
1 parent fd6acdc commit a5cc23a
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/vscode_ext.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
with:
name: baml-vscode.vsix
path: typescript/vscode-ext/packages/baml-${{ steps.build.outputs.version }}.vsix

# Upload the artifact (helpful for debugging and manual downloads)
- name: Upload VSCode Extension Artifact
uses: actions/upload-artifact@v3
Expand All @@ -103,7 +103,7 @@ jobs:
with:
name: baml-vscode.vsix
path: typescript/vscode-ext/packages

- name: Get artifact
uses: actions/download-artifact@v3
with:
Expand All @@ -113,10 +113,6 @@ jobs:
- id: hash
run: |
VERSION=$(cat typescript/.bumpversion.cfg | grep current_version | cut -d '=' -f 2 | sed 's/[", ]//g')
if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+-canary\.[0-9]+$ ]]; then
echo "Version ($VERSION) is not a pre-release build"
exit 1
fi
echo "version=$(echo $VERSION | cut -d '-' -f 1)" >> $GITHUB_OUTPUT
echo "full_version=$VERSION" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -180,14 +176,10 @@ jobs:
with:
name: baml-out
path: typescript/vscode-ext/packages/vscode/out

- id: hash
run: |
VERSION=$(cat typescript/.bumpversion.cfg | grep current_version | cut -d '=' -f 2 | sed 's/[", ]//g')
if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+-canary\.[0-9]+$ ]]; then
echo "Version ($VERSION) is not a pre-release build"
exit 1
fi
echo "version=$(echo $VERSION | cut -d '-' -f 1)" >> $GITHUB_OUTPUT
echo "full_version=$VERSION" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit a5cc23a

Please sign in to comment.