-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reverted: release1 job in workflows/python-package.yml
- Loading branch information
Showing
1 changed file
with
0 additions
and
48 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,51 +33,3 @@ jobs: | |
- name: Run Tests | ||
run: | | ||
pdm run pytest | ||
release1: | ||
concurrency: release1 | ||
permissions: | ||
contents: write | ||
# Only run this job if the "ci" job passes | ||
needs: ci | ||
|
||
# Only run this job if new work is pushed to the "master" branch | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
|
||
# Set up operating system | ||
runs-on: ubuntu-latest | ||
outputs: | ||
tag: ${{ steps.release.outputs.tag }} | ||
released: ${{ steps.release.outputs.released }} | ||
|
||
# Define job steps | ||
steps: | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@main | ||
with: | ||
python-version: 3.12 | ||
- name: Check-out repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: master | ||
submodules: recursive | ||
|
||
- name: Use Python Semantic Release to prepare release | ||
id: release | ||
uses: python-semantic-release/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Publish package distributions to GitHub Releases | ||
uses: python-semantic-release/publish-action@main | ||
if: steps.release.outputs.released == 'true' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Store the distribution packages | ||
uses: actions/upload-artifact@v4 | ||
if: steps.release.outputs.released == 'true' | ||
with: | ||
name: python-package-distributions | ||
path: dist/ | ||
|