1.7.5 #16
Workflow file for this run
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
| on: | |
| release: | |
| types: | |
| - created | |
| name: Upload the extension | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 'v20.18.0' | |
| - run: npm ci | |
| # - name: Download Phpactor | |
| # run: npm run download-phpactor | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '8.3' | |
| tools: composer | |
| - name: Composer Install | |
| run: composer install --prefer-dist --no-interaction --optimize-autoloader --no-dev | |
| - run: npm run compile | |
| - run: mkdir artifacts | |
| - name: Package | |
| run: npx vsce package --no-git-tag-version --no-update-package-json --out=artifacts/phpactor.vsix ${{ github.event.release.tag_name }} | |
| - name: 'Release Extension' | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./artifacts/phpactor.vsix | |
| asset_name: phpactor.vsix | |
| asset_content_type: application/octet-stream | |
| - name: Publish to Visual Studio Marketplace | |
| run: npx vsce publish --packagePath ./artifacts/phpactor.vsix | |
| env: | |
| VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
| - name: Publish to Open VSX Registry | |
| run: npx ovsx publish --packagePath ./artifacts/phpactor.vsix | |
| env: | |
| OVSX_PAT: ${{ secrets.OVSX_PAT }} |