diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-09 22:22:46 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-09 22:22:46 -0700 |
commit | cbd7656bb4c9aebfe98c746111af52cf7192aa1b (patch) | |
tree | 6be021fa6625bc5fa31631d5ac4a617cb874e02c /.github/workflows/main.yaml | |
parent | 8456b24318b13ea5d5dabec2328dd854f8a492b4 (diff) | |
download | sncontinue-cbd7656bb4c9aebfe98c746111af52cf7192aa1b.tar.gz sncontinue-cbd7656bb4c9aebfe98c746111af52cf7192aa1b.tar.bz2 sncontinue-cbd7656bb4c9aebfe98c746111af52cf7192aa1b.zip |
feat: :sparkles: testing in ci, final test of
Diffstat (limited to '.github/workflows/main.yaml')
-rw-r--r-- | .github/workflows/main.yaml | 49 |
1 files changed, 20 insertions, 29 deletions
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6111856d..9bc05281 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -45,7 +45,7 @@ jobs: name: ${{ runner.os }} Build path: dist/* - test-and-package: + test-and-publish-extension: needs: pyinstaller strategy: matrix: @@ -135,51 +135,42 @@ jobs: npm run test if: matrix.os != 'ubuntu-20.04' - # Upload .vsix artifact - - - name: Upload .vsix as an artifact - uses: actions/upload-artifact@v2 - with: - name: vsix-artifact - path: extension/build/* - if: matrix.os == 'ubuntu-20.04' - - publish: - needs: test-and-package - runs-on: ubuntu-20.04 - permissions: - contents: write - - steps: - # Checkout and download .vsix artifact - - - name: Checkout - uses: actions/checkout@v2 - - - name: Download .vsix artifact - uses: actions/download-artifact@v2 - with: - name: vsix-artifact - path: extension/build - - # Publish the extension and commit/push the version change + # Publish the extension and commit/push the version change (ONLY on ubuntu-20.04) - name: Publish run: | cd extension npx vsce publish patch -p ${{ secrets.VSCE_TOKEN }} + if: matrix.os == 'ubuntu-20.04' + - name: Commit changes run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git commit -am "ci: 💚 Update package.json version [skip ci]" + if: matrix.os == 'ubuntu-20.04' - name: Push changes uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} branch: ${{ github.ref }} + if: matrix.os == 'ubuntu-20.04' + + - name: Upload .vsix as an artifact + uses: actions/upload-artifact@v2 + with: + name: vsix-artifact + path: extension/build/* + if: matrix.os == 'ubuntu-20.04' + publish-binaries: + needs: test-and-publish-extension + runs-on: ubuntu-20.04 + permissions: + contents: write + + steps: # Download binaries and upload to S3 - name: Download Linux build |