-
Notifications
You must be signed in to change notification settings - Fork 40
38 lines (37 loc) · 914 Bytes
/
release.yml
File metadata and controls
38 lines (37 loc) · 914 Bytes
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
name: Generate release
permissions:
contents: write
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
build:
uses: ./.github/workflows/build.yml # Build the package artifacts
with:
python-version: '3.10'
node-version: 'v18.16.0'
release:
runs-on: ubuntu-latest
permissions:
contents: write
needs: build
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Download Python distributions
uses: actions/download-artifact@v4
with:
name: python-distributions
path: dist/
- name: Download npm package
uses: actions/download-artifact@v4
with:
name: npm-package
path: npm-dist/
- name: Upload GitHub Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*.whl,dist/*.tar.gz,npm-dist/*.tgz"
draft: true