-
-
Notifications
You must be signed in to change notification settings - Fork 21
54 lines (45 loc) · 1.25 KB
/
publish.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
---
name: Publish packages
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Build source
uses: udondan/jsii-publish@v0.12.0
with:
VERSION: ${{ steps.get_version.outputs.VERSION }}
BUILD_SOURCE: true
- name: Build packages
uses: udondan/jsii-publish@v0.12.0
with:
BUILD_PACKAGES: true
- name: Publish to npm
uses: udondan/jsii-publish@v0.12.0
with:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to PyPI
uses: udondan/jsii-publish@v0.12.0
with:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- name: Publish to NuGet
uses: udondan/jsii-publish@v0.12.0
with:
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
#
# - name: Publish to Maven GitHub
# uses: udondan/jsii-publish@v0.12.0
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITHUB_REPOSITORY: ${{ github.repository }}