Skip to content

Commit

Permalink
Revert "XXX make renamed workflow visible"
Browse files Browse the repository at this point in the history
This reverts commit 4c0ed1e.
  • Loading branch information
mara004 committed Oct 31, 2023
1 parent 4c0ed1e commit 14f08d5
Showing 1 changed file with 38 additions and 39 deletions.
77 changes: 38 additions & 39 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

name: Main packaging
on:
pull_request:
workflow_dispatch:
inputs:
pre_test:
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 14f08d5

Please sign in to comment.