-
-
Notifications
You must be signed in to change notification settings - Fork 21
56 lines (46 loc) · 1.17 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
55
56
---
name: Publish packages
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
container:
image: public.ecr.aws/jsii/superchain:1-bookworm-slim-node20
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y tree
- name: Build source w/ jsii
run: npx jsii
- name: Build packages w/ jsii-pacmak
run: |
npx jsii-pacmak --verbose
tree dist
- name: Publish to npm
run: publib-npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish to PyPI
run: publib-pypi
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
- name: Publish to NuGet
run: publib-nuget
env:
NUGET_API_KEY: ${{ secrets.NUGET_TOKEN }}
#
# - name: Publish to Maven GitHub
# run: publib-maven
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITHUB_REPOSITORY: ${{ github.repository }}