-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.56 KB
/
deploy.yml
File metadata and controls
60 lines (50 loc) · 1.56 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
48
49
50
51
52
53
54
55
56
57
58
59
60
name: PowerTech C/C++ Extension Deploy
on:
push:
branches:
- master
jobs:
Deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: LFS update
run: |
git lfs pull
- name: Version
run: |
version=$(pwsh -c 'echo (Get-Date -Format "yy.MM.dd" -AsUTC).Replace(".0", ".")')
echo $version
echo "version=${version}" >> $GITHUB_ENV
echo "vversion=v${version}" >> $GITHUB_ENV
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Preparing
run: |
npm install
npm install -g vsce
#- name: Testing
# run: xvfb-run -a npm test
- name: Thirdparty Downloading
run: |
pwsh ./thirdparty-assets.ps1
message=$(git log -1 HEAD --pretty=format:%s)
allversions=$(cat assets/versions.txt)
echo "release_name=${message} (${allversions})" >> $GITHUB_ENV
- name: Thirdparty Releasing
uses: meeDamian/github-release@2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.vversion }}
name: ${{ env.vversion }}
body: ${{ env.release_name }}
gzip: false
allow_override: true
files: assets/*
- name: Publishing
env:
VSCE_TOKEN: ${{ secrets.VSCE_TOKEN }}
run: pwsh ./publish.ps1