Skip to content

Commit

Permalink
Attempt a release action
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <[email protected]>

Attempt a release action

Signed-off-by: Rob Stryker <[email protected]>

Attempt a release action

Signed-off-by: Rob Stryker <[email protected]>

Attempt a release action

Signed-off-by: Rob Stryker <[email protected]>

Attempt a release action

Signed-off-by: Rob Stryker <[email protected]>

Attempt a release action

Signed-off-by: Rob Stryker <[email protected]>

Attempt a release action

Signed-off-by: Rob Stryker <[email protected]>

Attempt a release action

Signed-off-by: Rob Stryker <[email protected]>

Attempt a release action

Signed-off-by: Rob Stryker <[email protected]>

Change wording in release script

Signed-off-by: Rob Stryker <[email protected]>

Release script bug - add debugging line

Signed-off-by: Rob Stryker <[email protected]>

Release script bug - add debugging line

Signed-off-by: Rob Stryker <[email protected]>

Release script bug - fixing vsce and ovsx publish commands

Signed-off-by: Rob Stryker <[email protected]>

Fix publishing commands

Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
robstryker committed Oct 4, 2024
1 parent 217bc62 commit 6537399
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 4 deletions.
80 changes: 78 additions & 2 deletions .github/workflows/gh-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,23 @@ on:
pull_request:
branches: [master]
workflow_dispatch:

inputs:
publishToMarketPlace:
description: 'Publish to VS Code Marketplace ?'
required: true
type: choice
options:
- 'true'
- 'false'
default: 'false'
publishToOVSX:
description: 'Publish to OpenVSX Registry ?'
required: true
type: choice
options:
- 'true'
- 'false'
default: 'false'
jobs:
test:
runs-on: ${{ matrix.os }} # runs a test on Ubuntu, Windows and macOS
Expand Down Expand Up @@ -59,4 +75,64 @@ jobs:
uses: codecov/codecov-action@v4
with:
file: ./coverage/coverage-final.json


packaging-job:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'schedule' }}
steps:
- name: Checkout vscode-server-connector
uses: actions/checkout@v4
- name: Set Up NodeJS
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install NodeJS dependencies
run: npm install -g typescript "@vscode/vsce" "ovsx"
- name: Cache Version
run: |
echo "EXT_VERSION=$(cat package.json | jq -r .version)" >> $GITHUB_ENV
- name: Build vscode-server-connector
run: |
npm install
npm run build
- name: Package vscode-server-connector
run: |
vsce package -o vscode-server-connector-${{ env.EXT_VERSION }}.vsix
ls -lash *.vsix
- name: Upload VSIX Artifacts
uses: actions/upload-artifact@v4
with:
name: vscode-server-connector
path: |
vscode-server-connector-${{ env.EXT_VERSION }}.vsix
if-no-files-found: error
release-job:
environment: ${{ (inputs.publishToMarketPlace == 'true' || inputs.publishToOVSX == 'true') && 'release' }}
runs-on: ubuntu-latest
needs: packaging-job
steps:
- name: Set Up NodeJS
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: |
npm install -g typescript "@vscode/vsce" "ovsx"
- name: Download VSIX
uses: actions/download-artifact@v4
- name: Publish to VS Code Marketplace
if: ${{ inputs.publishToMarketPlace == 'true' }}
run: |
ls -la #debug
for platformVsix in vscode-server-connector/*.vsix; do
echo "Running command: vsce publish --skip-duplicate -p SOME_SECRET --packagePath ${platformVsix}"
vsce publish --skip-duplicate -p ${{ secrets.VSCODE_MARKETPLACE_TOKEN }} --packagePath ${platformVsix}
done
- name: Publish to OpenVSX Registry
if: ${{ inputs.publishToOVSX == 'true' }}
run: |
ls -la #debug
for platformVsix in vscode-server-connector/*.vsix; do
echo "Running command: ovsx publish --skip-duplicate -p SOME_SECRET --packagePath ${platformVsix}"
ovsx publish --skip-duplicate -p ${{ secrets.OVSX_MARKETPLACE_TOKEN }} --packagePath ${platformVsix}
done
5 changes: 3 additions & 2 deletions npmUpversionMicroTagPush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ read -p "Press enter to continue"
vsce package
echo "Did the package work?"
read -p "Press enter to continue"

echo "Go to Jenkins and do a proper build there first."
echo ""
echo ""
echo "Go to https://github.com/redhat-developer/vscode-server-connector/actions/workflows/gh-actions.yml and trigger a build there first."
echo "Come back when that's green."
read -p "Press enter to continue"

Expand Down

0 comments on commit 6537399

Please sign in to comment.