-
-
Notifications
You must be signed in to change notification settings - Fork 59
29 lines (27 loc) · 867 Bytes
/
release.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
name: Release
on:
release:
types: [published]
jobs:
PyPI:
runs-on: ubuntu-latest
steps:
- run: sudo apt install -y gettext
- uses: actions/[email protected]
- uses: actions/[email protected]
- 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
- name: Build dist packages
run: python -m build --sdist --wheel
- name: Upload packages
run: python -m twine upload dist/*
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}