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 | f9ea4f84da154d0c3391d572ce958bc6bb4a96cd (patch) | |
| tree | 2e31627e99485f11df760d2f0a548d4308a3705f /.github/workflows/main.yaml | |
| parent | 0ffd2648d679916872c681036a68741a83d80c0e (diff) | |
| download | sncontinue-f9ea4f84da154d0c3391d572ce958bc6bb4a96cd.tar.gz sncontinue-f9ea4f84da154d0c3391d572ce958bc6bb4a96cd.tar.bz2 sncontinue-f9ea4f84da154d0c3391d572ce958bc6bb4a96cd.zip | |
github actions
Diffstat (limited to '.github/workflows/main.yaml')
| -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/* | 
