-
Notifications
You must be signed in to change notification settings - Fork 0
Improve CI workflows and fix documentation deployment #117
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
Merged
+117
−121
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
bbf6861
Serializes docs deploy; fetches gh-pages branch
AndrewSazonov 7c9b645
Clarifies docs CI and versioned deploy with mike
AndrewSazonov 2181a50
Includes pytest.ini in PyPI test workflow
AndrewSazonov f63fb54
Removes PyPI extras install from test workflow
AndrewSazonov 56a06bb
Updates CI to use new tutorials download command
AndrewSazonov 910dfc3
Replaces PR backmerge with direct merge on tags
AndrewSazonov bc3b7bd
Update .github/workflows/backmerge.yaml
AndrewSazonov b5cbf17
Update .github/workflows/docs.yaml
AndrewSazonov 5fc090b
Update .github/workflows/backmerge.yaml
AndrewSazonov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| # This workflow automatically merges `master` into `develop` whenever a new version tag is pushed (v*). | ||
| # | ||
| # Key points: | ||
| # - Directly merges master into develop without creating a PR. | ||
| # - Skips CI on the merge commit using [skip ci] in the commit message. | ||
| # - The code being merged has already been tested as part of the release process. | ||
| # - This ensures develop stays up-to-date with release changes (version bumps, etc.). | ||
| # | ||
| # Required repo config: | ||
| # https://github.com/organizations/easyscience/settings/secrets/actions | ||
| # https://github.com/organizations/easyscience/settings/variables/actions | ||
| # - Actions secret: BACKMERGE_PRIVATE_KEY (GitHub App private key PEM) | ||
| # - Actions variable: BACKMERGE_APP_ID (GitHub App ID) | ||
| # The GitHub App must be added to the develop branch ruleset bypass list. | ||
|
|
||
| name: Backmerge (master -> develop) | ||
|
|
||
| on: | ||
| push: | ||
| tags: ['v*'] | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| backmerge: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Create GitHub App installation token | ||
| id: app-token | ||
| uses: actions/create-github-app-token@v2 | ||
| with: | ||
| app-id: ${{ vars.BACKMERGE_APP_ID }} | ||
| private-key: ${{ secrets.BACKMERGE_PRIVATE_KEY }} | ||
|
|
||
| - name: Checkout repository | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| fetch-depth: 0 | ||
| token: ${{ steps.app-token.outputs.token }} | ||
|
|
||
| - name: Configure git | ||
| run: | | ||
| git config user.name "es-backmerge[bot]" | ||
| git config user.email "${{ vars.BACKMERGE_APP_ID }}+es-backmerge[bot]@users.noreply.github.com" | ||
|
|
||
| - name: Merge master into develop | ||
| run: | | ||
| set -euo pipefail | ||
|
|
||
| TAG='${{ github.ref_name }}' | ||
|
|
||
| # Ensure local develop branch exists and is up-to-date with origin | ||
| git fetch origin develop:develop | ||
| # Switch to develop branch | ||
| git checkout develop | ||
|
|
||
| # Merge master into develop (no fast-forward to preserve history) | ||
| # Use [skip ci] to avoid triggering CI - the code was already tested on master | ||
| git merge origin/master --no-ff -m "Backmerge: ${TAG} from master into develop [skip ci]" | ||
|
|
||
| # Push the merge commit to develop | ||
| git push origin develop | ||
|
|
||
| echo "✅ Successfully merged master (${TAG}) into develop" | ||
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.