build(deps): bump actions/download-artifact from 7 to 8 (#161) #448
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| tags: ['*'] | |
| env: | |
| VSIX_FILE: "vscode-vba-${{ github.ref_name }}.vsix" | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Cache bun global cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: ${{ runner.os }}-bun-cache-${{ hashFiles('bun.lockb') }} | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Validate YAML syntax | |
| run: bun run validate | |
| - name: Test Grammars | |
| run: bun run test | |
| package: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Cache bun global cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.bun/install/cache | |
| key: ${{ runner.os }}-bun-cache-${{ hashFiles('bun.lockb') }} | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Package | |
| run: bun run package | |
| - name: Upload artifact | |
| if: startsWith(github.ref, 'refs/tags/') | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ${{ env.VSIX_FILE }} | |
| path: ${{ env.VSIX_FILE }} | |
| if-no-files-found: error | |
| create-release: | |
| needs: | |
| - test | |
| - package | |
| if: startsWith(github.ref, 'refs/tags/') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: ${{ env.VSIX_FILE }} | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| generate_release_notes: true | |
| fail_on_unmatched_files: true | |
| files: ${{ env.VSIX_FILE }} | |
| publish-vsce: | |
| needs: | |
| - create-release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: ${{ env.VSIX_FILE }} | |
| - id: publish_to_marketplace | |
| name: Publish to VS Code Marketplace | |
| uses: HaaLeo/publish-vscode-extension@v2 | |
| with: | |
| pat: ${{ secrets.VSCE_PAT }} | |
| registryUrl: https://marketplace.visualstudio.com | |
| extensionFile: ${{ env.VSIX_FILE }} | |
| publish-open-vsx: | |
| needs: | |
| - create-release | |
| if: startsWith(github.ref, 'refs/tags/') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v8 | |
| with: | |
| name: ${{ env.VSIX_FILE }} | |
| - name: Publish to Open VSX Registry | |
| uses: HaaLeo/publish-vscode-extension@v2 | |
| with: | |
| pat: ${{ secrets.OPEN_VSX_PAT }} | |
| extensionFile: ${{ env.VSIX_FILE }} |