Development (#16) #22
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: "Deploy package" | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
permissions: | |
id-token: write | |
contents: read | |
repository-projects: read | |
packages: read | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/goldenm-software/python-builder:3.11 | |
options: --user root | |
credentials: | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Build | |
run: | | |
pip install --upgrade pip build twine | |
python3 -m build | |
- name: Upload to Python Package Index | |
uses: pypa/gh-action-pypi-publish@v1.8.10 | |
with: | |
user: ${{ secrets.LAYRZ_PYPI_USERNAME }} | |
password: ${{ secrets.LAYRZ_PYPI_PASSWORD }} |