Skip to content

πŸ“¦ PyPI-Test - Build 0.0.9-dev.5 #44

πŸ“¦ PyPI-Test - Build 0.0.9-dev.5

πŸ“¦ PyPI-Test - Build 0.0.9-dev.5 #44

name: πŸ“¦ Package PyPI-Test
on:
push:
branches: [ "pypi" ]
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: βš™οΈ Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: βš™οΈ Install dependencies
run: |
python -m pip install --upgrade pip
pip install build --no-cache-dir
- name: βœ… Run Script
run: |
python .github/minify.py
- name: πŸ“ Git Config
run: |
git config --global user.email ${{secrets.EMAIL}}
git config --global user.name ${{secrets.USERNAME}}
shell: bash
- name: πŸ“ Git Process
run: |
if [[ `git status --porcelain` ]]; then
git add --all
git commit -a -m "πŸ€– BOOT: Update"
git push origin HEAD:master --force
else
echo "WARNING: No changes were detected. git commit push action aborted."
fi
shell: bash
continue-on-error: true
- name: πŸ“¦ Build Package
run: python -m build
- name: πŸ“¦ Publish Package to Test PyPI
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/