-
Notifications
You must be signed in to change notification settings - Fork 337
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
Issue 1032 pypi #1034
Conversation
-changed workflow names to exactly match yaml filename
with: | ||
name: wiki-markdown | ||
path: ${{ env.TEMP_WIKI_DIR }} | ||
|
||
|
||
publish: | ||
name: Publish to GitHub Wiki | ||
runs-on: ubuntu-latest | ||
needs: build |
There was a problem hiding this comment.
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
- name: Upload to PyPi | ||
run: | | ||
python -m twine upload dist/* | ||
env: | ||
TWINE_USERNAME: '${{ secrets.PYPI_USERNAME }}' | ||
TWINE_PASSWORD: '${{ secrets.PYPI_PASSWORD }}' |
There was a problem hiding this comment.
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
Thanks for these suggestions Joe, I'll try them out now. Good idea RE the
wiki workflow.
A
…On Wed, Mar 3, 2021 at 12:28 PM Joe Yu ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In .github/workflows/wiki-publish.yaml
<#1034 (comment)>:
> with:
name: wiki-markdown
path: ${{ env.TEMP_WIKI_DIR }}
-
publish:
name: Publish to GitHub Wiki
runs-on: ubuntu-latest
needs: build
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
------------------------------
In .github/workflows/pypi.yaml
<#1034 (comment)>:
> + - name: Upload to PyPi
+ run: |
+ python -m twine upload dist/*
+ env:
+ TWINE_USERNAME: '${{ secrets.PYPI_USERNAME }}'
+ TWINE_PASSWORD: '${{ secrets.PYPI_PASSWORD }}'
I've spotted pypa have setup a CI action
<https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi-and-testpypi>
that could be used here to do the upload if you prefer instead of twine
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1034 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMOUSVSVDHTFTT3P6YJ6OTTBWGCFANCNFSM4YQACHEQ>
.
|
Winner, those changes are released.
…On Wed, Mar 3, 2021 at 12:32 PM Allan Johns ***@***.***> wrote:
Thanks for these suggestions Joe, I'll try them out now. Good idea RE the
wiki workflow.
A
On Wed, Mar 3, 2021 at 12:28 PM Joe Yu ***@***.***> wrote:
> ***@***.**** commented on this pull request.
> ------------------------------
>
> In .github/workflows/wiki-publish.yaml
> <#1034 (comment)>:
>
> > with:
>
> name: wiki-markdown
>
> path: ${{ env.TEMP_WIKI_DIR }}
>
>
>
> -
>
> publish:
>
> name: Publish to GitHub Wiki
>
> runs-on: ubuntu-latest
>
> needs: build
>
>
> 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
>
> ------------------------------
>
> In .github/workflows/pypi.yaml
> <#1034 (comment)>:
>
> > + - name: Upload to PyPi
>
> + run: |
>
> + python -m twine upload dist/*
>
> + env:
>
> + TWINE_USERNAME: '${{ secrets.PYPI_USERNAME }}'
>
> + TWINE_PASSWORD: '${{ secrets.PYPI_PASSWORD }}'
>
>
> I've spotted pypa have setup a CI action
> <https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/#publishing-the-distribution-to-pypi-and-testpypi>
> that could be used here to do the upload if you prefer instead of twine
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#1034 (review)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAMOUSVSVDHTFTT3P6YJ6OTTBWGCFANCNFSM4YQACHEQ>
> .
>
|
awesome, cheers! |
Fixes #1032
Also changed the wiki workflow a little by splitting into build/publish workflows.