-
Notifications
You must be signed in to change notification settings - Fork 5
57 lines (54 loc) · 1.92 KB
/
main.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
on:
push:
tags:
- "*"
branches:
- main
pull_request:
branches:
- main
name: Build & Upload
jobs:
create-packages:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- name: install dependencies
run: |
npm install . --include=dev
npm run download
- name: get package version
id: package-version
uses: Saionaro/extract-package-version@v1.0.6
# - name: build extension
# run: vsce package
- name: build command line tool
run: npm run buildmod:pack
# - name: test
# run: npm run test
# - name: upload extension
# uses: actions/upload-artifact@v4
# with:
# name: anno-modding-tools-${{ steps.package-version.outputs.version }}
# path: anno-modding-tools-${{ steps.package-version.outputs.version }}.vsix
# if-no-files-found: error
- name: upload command line tool
uses: actions/upload-artifact@v4
with:
name: anno-modding-tools-${{ steps.package-version.outputs.version }}
path: anno-modding-tools-${{ steps.package-version.outputs.version }}.tgz
if-no-files-found: error
- name: release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
body: |
[Full Changelog](https://github.com/anno-mods/vscode-anno-modding-tools/blob/${{ github.sha }}/CHANGELOG.md)
Download via [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=JakobHarder.anno-modding-tools) or in VS Code in the extension tab directly.
files: |
anno-modding-tools-${{ steps.package-version.outputs.version }}.tgz
# anno-modding-tools-${{ steps.package-version.outputs.version }}.vsix