Bump version #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: My Privacy DNS Release | |
on: | |
push: | |
branches: | |
- 'dev' | |
- 'master' | |
env: | |
GIT_NAME: '${{ secrets.GIT_NAME }}' | |
GIT_EMAIL: '${{ secrets.GIT_EMAIL }}' | |
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | |
jobs: | |
scheduler: | |
name: Trigger action | |
runs-on: '${{ matrix.os }}' | |
strategy: | |
fail-fast: false | |
matrix: | |
python_version: | |
- '3.11' | |
os: | |
- ubuntu-latest | |
steps: | |
- uses: actions/checkout@main #Obviously yet another american... | |
name: Clone repository | |
with: | |
token: '${{ secrets.GITHUB_TOKEN }}' | |
- name: Install requirements | |
run: | | |
python3 -m pip install -U pip | |
python3 -m pip install -r requirements.txt | |
# pip install safety | |
# - name: Check the safety of our dependencies. | |
# run: safety check | |
- name: Build 📦 | |
run: | | |
cd "${{ github.workspace }}" | |
python setup.py sdist bdist_wheel | |
- name: Check 📦 | |
run: | | |
twine check dist/* | |
- name: Publish 📦 to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_DEV_API_TOKEN }} | |
skip_existing: true |