Add actions?
This commit is contained in:
28
.gitea/workflows/publish.yaml
Normal file
28
.gitea/workflows/publish.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
name: Publish Package
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Package
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- run: source init_env.sh
|
||||
- run: python -m build
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: python-package-distributions
|
||||
path: dist/
|
||||
|
||||
deploy:
|
||||
name: Deploy Package
|
||||
needs:
|
||||
- build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- run: source init_env.sh
|
||||
- uses: actions/download-artifact@v4
|
||||
name: python-package-distributions
|
||||
path: dist/
|
||||
- run: TWINE_PASSWORD=${{ secrets.PYPI_PAT }} TWINE_USERNAME=bslathi19 python -m twine upload --repository-url ${CI_API_URL} dist/*
|
||||
Reference in New Issue
Block a user