Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions .github/workflows/publish_alpha_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ jobs:
version: ${{ steps.version.outputs.version }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
path: action/package/
- name: Checkout Scripts Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: action/github/
repository: NeonGeckoCom/.github
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Increment Alpha Version
Expand All @@ -94,7 +94,7 @@ jobs:
run: |
python action/package/${{ inputs.on_version_change }} ${{ steps.version.outputs.version }}
- name: Push Version Change
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Increment Version to ${{ steps.version.outputs.version }}
repository: action/package/
Expand All @@ -106,7 +106,7 @@ jobs:
changelog: ${{ steps.changelog.outputs.changelog }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
path: action/package/
Expand All @@ -127,7 +127,7 @@ jobs:
maxIssues: ${{ inputs.changelog_max_issues }}
sinceTag: ${{ steps.latest_release.outputs.release }}
- name: Push Changelog
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update Changelog
repository: action/package/
Expand All @@ -139,17 +139,17 @@ jobs:
runs-on: ${{inputs.runner}}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
path: action/package/
- name: Checkout Scripts Repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
path: action/github/
repository: NeonGeckoCom/.github
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Build Tools
Expand All @@ -162,8 +162,9 @@ jobs:
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages_dir: action/package/dist/
packages-dir: action/package/dist/
password: ${{secrets.PYPI_TOKEN}}
verbose: true
tag_prerelease:
needs:
- update_changelog
Expand All @@ -172,7 +173,7 @@ jobs:
runs-on: ${{inputs.runner}}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
path: action/package/
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/publish_stable_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
tag_release:
runs-on: ${{inputs.runner}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Get Version
run: |
VERSION=$(python setup.py --version)
Expand All @@ -22,21 +22,22 @@ jobs:
with:
token: ${{secrets.GITHUB_TOKEN}}
tag: ${{env.VERSION}}
generateReleaseNotes: true
build_and_publish_pypi:
runs-on: ${{inputs.runner}}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install Build Tools
run: |
python -m pip install build wheel
- name: Build Distribution Packages
run: |
python setup.py sdist bdist_wheel
python -m build
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be validated and should probably match the equivalent command in publish_alpha_release

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down