Skip to content

Commit

Permalink
Auto Publish Pre-release Extension
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCMD committed Jan 10, 2024
1 parent 5e5a955 commit 4815c44
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Auto Publish Pre-release Extension

on:
push:
branches:
- 'main'
paths:
- '**.json'
- '**.ts'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Install vsce
run: npm i -g @vscode/vsce

- name: Publish Pre-release
run: |
git config --global user.name "RedCMD"
git config --global user.email "theredcmd@gmail.com"
if [[ $(git diff --stat) != '' ]]; then
echo 'working directory dirty. must cleanup first'
git add .
git commit -m "Sync Github Actions"
fi
vsce publish patch --pre-release -p ${{ secrets.VSCE_PAT }}
git push

0 comments on commit 4815c44

Please sign in to comment.