Compare commits
No commits in common. "f74c2a5f6c1a81220ce3103be619220b9e935e1a" and "6236545ed6f1c4d01180b650b9ea594821a1704e" have entirely different histories.
f74c2a5f6c
...
6236545ed6
@ -26,33 +26,23 @@ 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@v3
|
# - uses: actions/checkout@v1
|
||||||
- name: Set up Python
|
# - name: Set up Python
|
||||||
uses: actions/setup-python@v4
|
# uses: actions/setup-python@v1
|
||||||
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: Check version match
|
# - name: Build and publish
|
||||||
run: |
|
# env:
|
||||||
REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_' | tr '[:upper:]' '[:lower:]')
|
# TWINE_USERNAME: __token__
|
||||||
if [ "$(cat $REPOSITORY_NAME/VERSION)" = "${GITHUB_REF_NAME:1}" ] ; then
|
# TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
echo "Version matches successfully!"
|
# run: |
|
||||||
else
|
# python setup.py sdist bdist_wheel
|
||||||
echo "Version must match!"
|
# twine upload dist/*
|
||||||
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/*
|
|
||||||
|
@ -6,7 +6,7 @@ permissions: write-all
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rename-project:
|
rename-project:
|
||||||
if: ${{ !endsWith (gitea.repository, 'Templates/Flask') }}
|
if: ${{ !endsWith (github.repository, 'Templates/Flask') }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
Loading…
Reference in New Issue
Block a user