Skip to content

Merge pull request #104 from lumapps/dependabot/pip/jinja2-3.1.4 #17

Merge pull request #104 from lumapps/dependabot/pip/jinja2-3.1.4

Merge pull request #104 from lumapps/dependabot/pip/jinja2-3.1.4 #17

Workflow file for this run

name: "Release"
on:
push:
branches:
- master
env:
python-version: 3.10.6
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
release:
timeout-minutes: 30
name: "Release"
runs-on: ubuntu-latest
steps:
- name: Check the code out
uses: actions/checkout@v3
- name: Install Python ${{ env.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.python-version }}
- name: Initialize .pypirc
run: |
echo -e "[pypi]" >> ~/.pypirc
echo -e "username = __token__" >> ~/.pypirc
echo -e "password = ${{ secrets.PYPI_TOKEN }}" >> ~/.pypirc
- name: Install CircleCI-specific dependencies
run: |
sudo apt update
sudo apt install -y libenchant-2-2
- name: Install the project dependencies
run: make init
- name: Create package
run: make dist
- name: Upload to PyPI
run: |
source venv/bin/activate
twine upload dist/*