Compare commits

...

2 Commits

Author SHA1 Message Date
f74c2a5f6c Merge pull request 'more bugfixes' (!1) from sidiesen/update into main
Some checks failed
Rename the project from template / rename-project (push) Has been skipped
SonarQube Scan / SonarQube Trigger (push) Has been skipped
CI / linter (ubuntu-latest, 3.9) (push) Failing after 1m4s
CI / tests_linux (ubuntu-latest, 3.9) (push) Has been skipped
Reviewed-on: #1
2024-11-13 09:15:11 -08:00
dca3187e40 more bugfixes
Some checks failed
Rename the project from template / rename-project (push) Has been skipped
SonarQube Scan / SonarQube Trigger (pull_request) Has been skipped
CI / linter (ubuntu-latest, 3.9) (pull_request) Failing after 39s
CI / tests_linux (ubuntu-latest, 3.9) (pull_request) Has been skipped
2024-11-13 18:13:55 +01:00
2 changed files with 31 additions and 21 deletions

View File

@ -26,23 +26,33 @@ jobs:
with: with:
body_path: release_message.md body_path: release_message.md
# deploy: deploy:
# needs: release needs: release
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - uses: actions/checkout@v1 - uses: actions/checkout@v3
# - name: Set up Python - name: Set up Python
# uses: actions/setup-python@v1 uses: actions/setup-python@v4
# with: with:
# python-version: '3.x' python-version: '3.x'
# - name: Install dependencies - name: Install dependencies
# run: | run: |
# python -m pip install --upgrade pip python -m pip install --upgrade pip
# pip install setuptools wheel twine pip install setuptools wheel twine
# - name: Build and publish - name: Check version match
# env: run: |
# TWINE_USERNAME: __token__ REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_' | tr '[:upper:]' '[:lower:]')
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} if [ "$(cat $REPOSITORY_NAME/VERSION)" = "${GITHUB_REF_NAME:1}" ] ; then
# run: | echo "Version matches successfully!"
# python setup.py sdist bdist_wheel else
# twine upload dist/* echo "Version must match!"
exit -1
fi
- name: Build and publish
env:
TWINE_USERNAME: gitearobot
TWINE_PASSWORD: ${{ secrets.PACKAGE_GITEA_PAT }}
run: |
REPOSITORY_OWNER=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $1}')
python setup.py sdist bdist_wheel
twine upload --repository-url https://git.disi.dev/api/packages/$REPOSITORY_OWNER/pypi dist/*

View File

@ -6,7 +6,7 @@ permissions: write-all
jobs: jobs:
rename-project: rename-project:
if: ${{ !endsWith (github.repository, 'Templates/Flask') }} if: ${{ !endsWith (gitea.repository, 'Templates/Flask') }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2