Skip to content

Commit

Permalink
chore: env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
RitikShah committed Jun 27, 2024
1 parent 0cef785 commit fdea188
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,20 @@ jobs:
git push origin main
continue-on-error: true

- name: Package VSCode Ext
run: vsce package
- id: package
name: Package VSCode Ext
run: |
vsce package
VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
echo "ext=syntax-mcfunction-$VERSION.vsix" >> "$GITHUB_OUTPUT"
- name: Archive production artifacts
uses: actions/upload-artifact@v3
if: "!startsWith(github.ref, 'refs/tags/')"
with:
name: dist-without-markdown
path: |
"*.vsix"
"${{ steps.package.outputs.ext }}"
"mcfunction.tmLanguage.yaml"
"mcfunction.tmLanguage.json"
Expand All @@ -70,6 +74,4 @@ jobs:
- name: Release to openvsix
if: startsWith(github.ref, 'refs/tags/')
run: |
VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
npx ovsx publish syntax-mcfunction-$VERSION.vsix -p ${{ secrets.OVSX }}
run: npx ovsx publish ${{ steps.package.outputs.ext }} -p ${{ secrets.OVSX }}

0 comments on commit fdea188

Please sign in to comment.