Skip to content

updated version back to 0.0.0 in about.py #14

updated version back to 0.0.0 in about.py

updated version back to 0.0.0 in about.py #14

Workflow file for this run

name: Release_Workflow
on:
push:
branches:
- master
jobs:
Code_Analysis_Job:
if: ${{ ! github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
environment: test
steps:
-
name: Check out repository code
uses: actions/checkout@v4
-
name: Setup Python environment
uses: actions/setup-python@v5
-
name: Install Dependencies
run: pip install requests
-
name: Running acceptace test
run: python test.py
env:
ULTRADNS_UNIT_TEST_USERNAME: ${{ secrets.ULTRADNS_UNIT_TEST_USERNAME }}
ULTRADNS_UNIT_TEST_PASSWORD: ${{ secrets.ULTRADNS_UNIT_TEST_PASSWORD }}
ULTRADNS_UNIT_TEST_HOST_URL: ${{ secrets.ULTRADNS_UNIT_TEST_HOST_URL }}
Release_Job:
runs-on: ubuntu-latest
needs: Code_Analysis_Job
environment: prod
steps:
-
name: Check out repository code
uses: actions/checkout@v4
-
name: Setup Python environment
uses: actions/setup-python@v5
-
name: Create Release Info
run: echo "RELEASE_VERSION=$(cat .plugin-version)" >> $GITHUB_ENV
-
name: Installing Dependencies
run: |
pip install requests
pip install hatch
-
name: Versioning the build
run: hatch version ${{ env.RELEASE_VERSION }}
-
name: Creating python Package
run: hatch build
-
name: Publishing python Package
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}