1234567891011121314151617181920212223242526 |
- name: Release
- on:
- release:
- types: [published]
- jobs:
- PyPi:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-python@v4
- with:
- python-version: "3.10"
- - run: python -m pip install --upgrade pip build wheel twine
- - uses: actions/setup-node@v3
- - name: Install Node dependencies
- run: npm ci
- - name: Minify JavaScript files
- run: npm run minify
- - run: python -m build --sdist --wheel
- - run: python -m twine upload dist/*
- env:
- TWINE_USERNAME: __token__
- TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
|