-
Notifications
You must be signed in to change notification settings - Fork 6
Attempt to fix the publish workflow #52
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,10 +3,6 @@ name: Publish (reusable workflow) | |
| on: | ||
| workflow_call: | ||
| inputs: | ||
| version: | ||
| description: 'Version number or tag for the release. For example: v1.0.1' | ||
| required: true | ||
| type: string | ||
| release_notes: | ||
| description: 'Release notes' | ||
| required: true | ||
|
|
@@ -16,7 +12,11 @@ on: | |
| required: true | ||
| type: string | ||
| environment_name: | ||
| description: 'Name of environment that specifies PyPI/TestPyPI url' | ||
| description: 'Name for PyPI/TestPyPI environment' | ||
| type: string | ||
| required: true | ||
| environment_url: | ||
| description: 'URL for PyPI/TestPyPI environment' | ||
| type: string | ||
| required: true | ||
| secrets: | ||
|
|
@@ -31,10 +31,13 @@ jobs: | |
| publish: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
| environment: ${{ inputs.environment_name }} | ||
| environment: | ||
| name: ${{ inputs.environment_name }} | ||
| url: ${{ inputs.environment_url }} | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
| GITHUB_REPO: ${{ github.repository }} | ||
| GITHUB_REFNAME: ${{ github.ref_name }} | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
|
|
@@ -73,11 +76,8 @@ jobs: | |
|
|
||
| - name: Create GitHub Release | ||
| env: | ||
| VERSION: ${{ inputs.version }} | ||
| NOTES: ${{ inputs.release_notes }} | ||
| run: gh release create $VERSION --repo $GITHUB_REPO --notes $NOTES | ||
| run: gh release create $GITHUB_REFNAME --repo $GITHUB_REPO --notes $NOTES | ||
|
||
|
|
||
| - name: Upload GitHub Release | ||
| env: | ||
| VERSION: ${{ inputs.version }} | ||
| run: gh release upload $VERSION dist/** --repo $GITHUB_REPO | ||
| run: gh release upload $GITHUB_REFNAME dist/** --repo $GITHUB_REPO | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,27 +1,18 @@ | ||||||||||||||
| name: Publish to TestPyPI | ||||||||||||||
|
|
||||||||||||||
| on: | ||||||||||||||
| workflow_dispatch: | ||||||||||||||
| inputs: | ||||||||||||||
| version: | ||||||||||||||
| description: 'Version name for release' | ||||||||||||||
| required: true | ||||||||||||||
| on: push | ||||||||||||||
|
||||||||||||||
| on: push | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop |
Uh oh!
There was an error while loading. Please reload this page.