forked from hvlads/django-ckeditor-5
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 839 Bytes
/
release.yml
File metadata and controls
29 lines (27 loc) · 839 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
name: Release
on:
release:
types: [published]
jobs:
pypi-publish:
runs-on: ubuntu-latest
environment: pypi
permissions:
id-token: write
steps:
- run: sudo apt install -y gettext
- uses: actions/setup-python@v4.2.0
- uses: actions/setup-node@v3.4.1
- uses: actions/checkout@v3
- name: Install Javascript dependencies
working-directory: ./django_ckeditor_5
run: npm install
- name: Build ck-editor
working-directory: ./django_ckeditor_5
run: npm run prod
- name: Install Python dependencies
run: python -m pip install --upgrade pip build wheel twine packaging
- name: Build distributions
run: python -m build --sdist --wheel
- name: Upload distributions
uses: pypa/gh-action-pypi-publish@release/v1