-
Notifications
You must be signed in to change notification settings - Fork 9
47 lines (46 loc) · 1.54 KB
/
release.yml
File metadata and controls
47 lines (46 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 }}