Fixing the publish workflow.
Some checks failed
StarFields Django Rest Framework Generics / build (push) Failing after 8s
Some checks failed
StarFields Django Rest Framework Generics / build (push) Failing after 8s
This commit is contained in:
@@ -4,6 +4,8 @@ on: [push]
|
||||
|
||||
env:
|
||||
GITHUB_WORKFLOW_REF:
|
||||
TWINE_USERNAME: ${{ secrets.GIT_PYPI_USERNAME }}
|
||||
TWINE_PASSWORD: ${{ secrets.GIT_PYPI_PASSWORD }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -34,13 +36,16 @@ jobs:
|
||||
run: pip install build && python -m build
|
||||
|
||||
- name: Publish package to Gitea PyPI
|
||||
continue-on-error: false
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
user: ${{ secrets.GIT_PYPI_USERNAME }}
|
||||
password: ${{ secrets.GIT_PYPI_PASSWORD }}
|
||||
repository-url: https://git.starfieldsweb.com/api/packages/StarFields/pypi
|
||||
print-hash: true
|
||||
verbose: true
|
||||
run: python3 -m twine upload --repository-url https://git.starfieldsweb.com/api/packages/StarFields/pypi ./*
|
||||
|
||||
# - name: Publish package to Gitea PyPI
|
||||
# continue-on-error: false
|
||||
# uses: pypa/gh-action-pypi-publish@release/v1
|
||||
# with:
|
||||
# user: ${{ secrets.GIT_PYPI_USERNAME }}
|
||||
# password: ${{ secrets.GIT_PYPI_PASSWORD }}
|
||||
# repository-url: https://git.starfieldsweb.com/api/packages/StarFields/pypi
|
||||
# print-hash: true
|
||||
# verbose: true
|
||||
|
||||
# TODO make a release section that creates a gitea release
|
||||
|
||||
Reference in New Issue
Block a user