-
Notifications
You must be signed in to change notification settings - Fork 5
68 lines (55 loc) · 1.86 KB
/
release.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: VIVIDUS Studio Release
on:
workflow_dispatch:
inputs:
release-version:
required: true
type: string
description: The release version, e.g. 1.0.0
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_RELEASE_TOKEN }}
- name: Install JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
cache: 'maven'
- name: Create release commit
run: |
git config --global user.email "[email protected]"
git config --global user.name "Uladzislau Arlouski"
npm version ${{ inputs.release-version }} -m "Release %s"
RELEASE_LINE="[${{ inputs.release-version }}] - $(date --iso-8601)"
sed -i "s/\[Unreleased\]/$RELEASE_LINE/g" CHANGELOG.md
git add CHANGELOG.md
git commit --amend --date=now --no-edit
- name: Build server
run: |
cd vividus-studio-server
./mvnw clean install
- name: Extension packaging
run: |
sudo npm install -g @vscode/vsce
npm install
vsce package
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
extensionFile: vividus-studio-${{ inputs.release-version }}.vsix
- name: Publish to GitHub
run: git push
- name: Publish to GitHub Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}
with:
files: vividus-studio-${{ inputs.release-version }}.vsix
tag_name: v${{ inputs.release-version }}