Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/push-to-registry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish to GitLab PyPI

on:
push:
branches:
- master

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10.12'

- name: Install Build Dependencies
run: |
python -m pip install --upgrade pip
pip install build twine

- name: Build the Package
run: python -m build

- name: Publish to GitLab PyPI
env:
TWINE_USERNAME: ${{ secrets.GITLAB_USERNAME }}
TWINE_PASSWORD: ${{ secrets.GITLAB_TOKEN }}
run: |
python -m twine upload --repository-url ${{ secrets.GITLAB_REPOSITORY_URL }} dist/*
Loading