diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4782c4c..1c13976 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -133,7 +133,7 @@ jobs: publish_vsix: needs: build_vsix - runs-on: windows-latest + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -143,32 +143,42 @@ jobs: with: node-version: '14' - - name: Install VSCE - run: npm install -g vsce + - name: Install dependencies + run: npm install + - name: Publish to VSCode Marketplace + run: cd VSCode/scriptsync + - uses: lannonbr/vsce-action@3.0.0 + with: + args: "publish -p $VSCE_TOKEN" + env: + VSCE_TOKEN: ${{ secrets.AZURE_OP_TOKEN }} - - name: Install TypeScript - run: npm install -g typescript + # - name: Install VSCE + # run: npm install -g vsce - - name: Install dependencies - run: | - npm install - npm install @types/vscode - npm install @types/jest --save-dev + # - name: Install TypeScript + # run: npm install -g typescript - - name: Download artifact - uses: actions/download-artifact@v2 - with: - name: script-sync - path: VSCode\scriptsync + # - name: Install dependencies + # run: | + # npm install + # npm install @types/vscode + # npm install @types/jest --save-dev - - name: Publish to VSCode Marketplace - run: | - vsce publish -p ${{ secrets.AZURE_OP_TOKEN }} - working-directory: VSCode\scriptsync + # - name: Download artifact + # uses: actions/download-artifact@v2 + # with: + # name: script-sync + # path: VSCode\scriptsync - - name: Verify the VSCode Marketplace package - run: | - vsce show ibois-epfl.script-sync + # - name: Publish to VSCode Marketplace + # run: | + # vsce publish -p ${{ secrets.AZURE_OP_TOKEN }} + # working-directory: VSCode\scriptsync + + # - name: Verify the VSCode Marketplace package + # run: | + # vsce show ibois-epfl.script-sync