chore: version bump #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish package to PyPi | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/project/h5p-xblock | |
permissions: | |
id-token: write | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.12'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install setuptools and wheel | |
run: python -m pip install --upgrade pip setuptools wheel | |
- name: Build package | |
run: python setup.py sdist bdist_wheel | |
- name: Publish to PyPi | |
uses: pypa/gh-action-pypi-publish@release/v1 |