summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/main.yaml27
1 files changed, 14 insertions, 13 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index dc670137..5f2571ab 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -46,8 +46,8 @@ jobs:
publish:
needs: pyinstaller
runs-on: ubuntu-latest
- # permissions:
- # contents: write
+ permissions:
+ contents: write
steps:
- name: Checkout
@@ -107,18 +107,19 @@ jobs:
run: |
cd extension
npm run package
+ vsce publish patch -p ${{ secrets.VSCE_TOKEN }}
- # - name: Commit changes
- # run: |
- # git config --local user.email "action@github.com"
- # git config --local user.name "GitHub Action"
- # git commit -am "Update package.json version [skip ci]"
-
- # - name: Push changes
- # uses: ad-m/github-push-action@master
- # with:
- # github_token: ${{ secrets.GITHUB_TOKEN }}
- # branch: ${{ github.ref }}
+ - name: Commit changes
+ run: |
+ git config --local user.email "action@github.com"
+ git config --local user.name "GitHub Action"
+ git commit -am "Update package.json version [skip ci]"
+
+ - name: Push changes
+ uses: ad-m/github-push-action@master
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ branch: ${{ github.ref }}
- name: Upload .vsix artifact
uses: actions/upload-artifact@v2