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

chore: improve CI #1139

Merged
merged 7 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
11 changes: 11 additions & 0 deletions .github/workflows/finish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ jobs:
ref: main
fetch-depth: 0 # Otherwise merge will fail on account of not having history.

- name: Put back the 999-SNAPSHOT version on the release branch
run: |
git config user.name "Timefold Release Bot"
git config user.email "[email protected]"
git checkout -B $RELEASE_BRANCH_NAME
mvn -Dfull versions:set -DnewVersion=999-SNAPSHOT
sed -i "s/^timefold_solver_python_version.*=.*/timefold_solver_python_version = '999-dev0'/" setup.py
find . -name 'pom.xml' | xargs git add
git commit -am "build: move back to 999-SNAPSHOT"
git push origin $RELEASE_BRANCH_NAME

- name: Update release branch
shell: bash
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
fetch-depth: 0
ref: ${{ github.event.inputs.sourceBranch }}

- name: Init release branch
- name: Delete existing release branch
zepfred marked this conversation as resolved.
Show resolved Hide resolved
continue-on-error: true
run: git push -d origin $RELEASE_BRANCH_NAME

Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
- name: Install Pip and build
run: |
python -m pip install --upgrade pip
pip install build
pip install build

# We skip tests in dry run, to make the process faster.
# Technically, this goes against the main reason for doing a dry run; to eliminate potential problems.
Expand Down Expand Up @@ -118,4 +118,4 @@ jobs:

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ github.event.inputs.dryRun == 'false' }}
if: ${{ github.event.inputs.dryRun == 'false' }}
Loading