diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-07-02 21:59:09 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-07-02 21:59:09 -0700 |
commit | 27256e3417078a209d54c709612b13acf648e646 (patch) | |
tree | 0ace70e9a918ba252792198c217e8d7f93b8a595 /.github | |
parent | c41314b095648e6b3bcecc84a20354574db8379d (diff) | |
download | sncontinue-27256e3417078a209d54c709612b13acf648e646.tar.gz sncontinue-27256e3417078a209d54c709612b13acf648e646.tar.bz2 sncontinue-27256e3417078a209d54c709612b13acf648e646.zip |
github actions
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/main.yaml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 00000000..467277e4 --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,44 @@ +name: Publish Extension + +on: + push: + branches: + - main + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v2 + with: + node-version: "14" + + - name: Install Dependencies + run: npm install + + - name: Build and Publish + run: | + cd extension + npm run full-package + + - 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 }} + + - name: Upload .vsix artifact + uses: actions/upload-artifact@v2 + with: + name: vsix-artifact + path: extension/build/* |