Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 1032 pypi #1034

Merged
merged 16 commits into from
Mar 3, 2021
Merged

Issue 1032 pypi #1034

merged 16 commits into from
Mar 3, 2021

Conversation

nerdvegas
Copy link
Contributor

Fixes #1032
Also changed the wiki workflow a little by splitting into build/publish workflows.

with:
name: wiki-markdown
path: ${{ env.TEMP_WIKI_DIR }}


publish:
name: Publish to GitHub Wiki
runs-on: ubuntu-latest
needs: build
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be possible to still keep the build and publish as separate jobs in the same workflow YAML file, but for the publish job, include an extra if to only run it during a release event?

on:  # Merge in this at the top of file
  release:
    types: [released]


  publish:
    name: Publish to GitHub Wiki
    runs-on: ubuntu-latest
     if: github.event_name == 'release'
    needs: build

Comment on lines +28 to +33
- name: Upload to PyPi
run: |
python -m twine upload dist/*
env:
TWINE_USERNAME: '${{ secrets.PYPI_USERNAME }}'
TWINE_PASSWORD: '${{ secrets.PYPI_PASSWORD }}'
Copy link
Contributor

Choose a reason for hiding this comment

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

I've spotted pypa have setup a CI action that could be used here to do the upload if you prefer instead of twine

@nerdvegas nerdvegas merged commit 71c97c0 into master Mar 3, 2021
@nerdvegas
Copy link
Contributor Author

nerdvegas commented Mar 3, 2021 via email

@nerdvegas
Copy link
Contributor Author

nerdvegas commented Mar 3, 2021 via email

@j0yu
Copy link
Contributor

j0yu commented Mar 3, 2021

awesome, cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pypi entries are out of date
2 participants