forked from applegrew/django-select2
-
-
Notifications
You must be signed in to change notification settings - Fork 57
48 lines (48 loc) · 1.24 KB
/
release.yml
File metadata and controls
48 lines (48 loc) · 1.24 KB
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
name: Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
pypi-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.x"
- run: python -m pip install --upgrade pip build wheel
- run: python -m build --sdist --wheel
- uses: actions/upload-artifact@v7
with:
name: release-dists
path: dist/
pypi-publish:
runs-on: ubuntu-latest
needs:
- pypi-build
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v8
with:
name: release-dists
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1
npmjs:
name: npmjs.org
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
registry-url: 'https://registry.npmjs.org'
- run: npm install -g npm@latest
- run: npm install
- run: npm config set git-tag-version=false
- run: npm version ${{ github.event.release.tag_name }}
- run: npm run build --if-present
- run: npm publish