-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (45 loc) · 1.33 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
name: Build and publish
permissions:
contents: write
on:
workflow_dispatch:
inputs:
package-version:
description: "Package version"
required: true
jobs:
build:
name: Build and publish release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install `cdm-devkit` package
run: pip install -e .
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup vsce
run: npm install -g vsce
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run make
run: make VERSION=${{ inputs.package-version }}
- name: Publish release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ inputs.package-version }}"
prerelease: false
title: "Release ${{ inputs.package-version }}"
files: |
build/cdm-devkit-misc-*
build/vscode-cdm-extension-*.*.*.vsix
build/cdm_devkit-*.whl