Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #33

Merged
merged 2 commits into from
May 8, 2024
Merged

Dev #33

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release Workflow
on:
push:
branches:
- prod
#- prod

jobs:
build:
Expand All @@ -18,8 +18,10 @@ jobs:
node-version: '20.11.1'
- name: Install dependencies
run: npm install
- name: Install VSCE
run: npm install -g vsce
- name: Install VSCE and OVSX
run: |
npm install -g vsce
npm install -g ovsx
- name: Build and package VS Code extension
run: vsce package
id: package_extension
Expand All @@ -42,23 +44,32 @@ jobs:
path: ${{ steps.set_vsix_name.outputs.vsix_filename }}
- name: Log VSCE version
run: vsce --version
- name: Log OVSX version
run: ovsx --version

- name: Log .vscodeignore contents
run: cat .vscodeignore

- name: Log npm dependencies
run: npm list

release:
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download VSIX artifact
uses: actions/download-artifact@v2
with:
name: vsix-file
path: ./
- name: Publish to Visual Studio Code Marketplace
env:
VSCODE_MARKETPLACE_TOKEN: ${{ secrets.VSCODE_MARKETPLACE_TOKEN }}
run: vsce publish --pat $VSCODE_MARKETPLACE_TOKEN --packagePath ${{ needs.build.outputs.vsix_filename }}
- name: Publish to VSCodium (Open VSX Registry)
env:
OPEN_VSX_TOKEN: ${{ secrets.OPEN_VSX_TOKEN }}
run: ovsx publish -p $OPEN_VSX_TOKEN --packagePath ${{ needs.build.outputs.vsix_filename }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down
Loading