-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warning banners about manual modifications
Update workflow for pypi-publish
- Loading branch information
1 parent
2366deb
commit 9cfd20a
Showing
3 changed files
with
35 additions
and
3 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 |
---|---|---|
@@ -1,14 +1,41 @@ | ||
name: pypi-publish | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: [ published ] | ||
types: | ||
- published | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '**/*.py' | ||
workflow_dispatch: | ||
inputs: | ||
dry_run: | ||
description: Dry run mode | ||
required: true | ||
options: | ||
- "true" | ||
- "false" | ||
|
||
jobs: | ||
pypi-publisher: | ||
runs-on: thevickypedia-lite | ||
steps: | ||
- name: Set dry-run | ||
run: | | ||
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then | ||
echo "::notice title=DryRun::Setting dry run to ${{ inputs.dry_run }} for '${{ github.event_name }}' event" | ||
echo "dry_run=${{ inputs.dry_run }}" >> $GITHUB_ENV | ||
elif [[ "${{ github.event_name }}" == "push" ]]; then | ||
echo "::notice title=DryRun::Setting dry run to true for '${{ github.event_name }}' event" | ||
echo "dry_run=true" >> $GITHUB_ENV | ||
else | ||
echo "::notice title=DryRun::Setting dry run to false for '${{ github.event_name }}' event" | ||
echo "dry_run=false" >> $GITHUB_ENV | ||
fi | ||
- uses: thevickypedia/pypi-publisher@v3 | ||
env: | ||
token: ${{ secrets.PYPI_TOKEN }} | ||
with: | ||
dry-run: ${{ env.dry_run }} |
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 |
---|---|---|
|
@@ -3,3 +3,5 @@ venv | |
doc_gen/_build | ||
doc_gen/_static | ||
doc_gen/_templates | ||
build/ | ||
NetFuse.egg-info/ |
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