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

Revert version update to release workflow with conditionals #340

Merged
merged 3 commits into from
Jan 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ jobs:
run: python setup.py sdist bdist_wheel
working-directory: ./${{ matrix.package }}/

- name: Commit files
if: ${{ matrix.package == 'emmet-core' }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "materialsproject"
git add _version.py && git commit -m 'Updated version file'

- name: Push changes
if: ${{ matrix.package == 'emmet-core' }}
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish package
uses: pypa/gh-action-pypi-publish@master
with:
Expand Down Expand Up @@ -65,7 +78,7 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "materialsproject"
mv CHANGELOG.md docs/
git add _version.py docs/CHANGELOG.md && git commit -m 'Updated CHANGELOG.md and _version.py'
git add docs/CHANGELOG.md && git commit -m 'Updated CHANGELOG.md'

- name: Push changes
uses: ad-m/github-push-action@master
Expand Down