-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "XXX make renamed workflow visible"
This reverts commit 4c0ed1e.
- Loading branch information
Showing
1 changed file
with
38 additions
and
39 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 |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
|
||
name: Main packaging | ||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
inputs: | ||
pre_test: | ||
|
@@ -189,49 +188,49 @@ jobs: | |
with: | ||
name: release_notes | ||
|
||
# - name: Apply and push repository changes | ||
# run: | | ||
# git config user.email "[email protected]" | ||
# git config user.name "geisserml" | ||
# git checkout main | ||
# git merge origin/autorelease_tmp | ||
# git tag -a ${{ needs.build.outputs.new_version }} -m "Autorelease" | ||
# git push | ||
# git push --tags | ||
# git checkout stable | ||
# git reset --hard main | ||
# git push --force | ||
# git checkout main | ||
- name: Apply and push repository changes | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "geisserml" | ||
git checkout main | ||
git merge origin/autorelease_tmp | ||
git tag -a ${{ needs.build.outputs.new_version }} -m "Autorelease" | ||
git push | ||
git push --tags | ||
git checkout stable | ||
git reset --hard main | ||
git push --force | ||
git checkout main | ||
# - name: Publish to GitHub | ||
# uses: ncipollo/release-action@v1 | ||
# with: | ||
# artifacts: 'dist/*' | ||
# bodyFile: 'RELEASE.md' | ||
# token: ${{ secrets.GITHUB_TOKEN }} | ||
# tag: ${{ needs.build.outputs.new_version }} | ||
# prerelease: ${{ contains(needs.build.outputs.new_version, 'b') }} | ||
- name: Publish to GitHub | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: 'dist/*' | ||
bodyFile: 'RELEASE.md' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ needs.build.outputs.new_version }} | ||
prerelease: ${{ contains(needs.build.outputs.new_version, 'b') }} | ||
|
||
# # Upload to TestPyPI / PyPI via "trusted publishing". | ||
# # https://docs.pypi.org/trusted-publishers/adding-a-publisher/ | ||
# # https://docs.pypi.org/trusted-publishers/using-a-publisher/ | ||
# # https://github.com/pypa/gh-action-pypi-publish | ||
# Upload to TestPyPI / PyPI via "trusted publishing". | ||
# https://docs.pypi.org/trusted-publishers/adding-a-publisher/ | ||
# https://docs.pypi.org/trusted-publishers/using-a-publisher/ | ||
# https://github.com/pypa/gh-action-pypi-publish | ||
|
||
# - name: Publish to TestPyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
# with: | ||
# repository-url: https://test.pypi.org/legacy/ | ||
# packages-dir: dist/ # the default | ||
- name: Publish to TestPyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
repository-url: https://test.pypi.org/legacy/ | ||
packages-dir: dist/ # the default | ||
|
||
# - name: Publish to PyPI | ||
# uses: pypa/gh-action-pypi-publish@release/v1 | ||
# with: | ||
# packages-dir: dist/ # the default | ||
- name: Publish to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
packages-dir: dist/ # the default | ||
|
||
# - name: Trigger GH Pages rebuild | ||
# uses: benc-uk/workflow-dispatch@v1 | ||
# with: | ||
# workflow: gh_pages.yaml # takes no inputs | ||
- name: Trigger GH Pages rebuild | ||
uses: benc-uk/workflow-dispatch@v1 | ||
with: | ||
workflow: gh_pages.yaml # takes no inputs | ||
|
||
conda_trigger: | ||
needs: [build, test, publish] | ||
|