Skip to content

Commit

Permalink
ci: Rename branch main->v2.x for consistency with v1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
rsenden committed Aug 13, 2024
1 parent 9ed8032 commit a454968
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,11 @@ jobs:
- name: PROD - Prepare GitHub release
id: create_prod_release
uses: GoogleCloudPlatform/release-please-action@v3
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/v2.x'
with:
command: github-release
release-type: simple
package-name: ${{ github.event.repository.name }}
default-branch: main

- name: PROD - Define release info
if: steps.create_prod_release.outputs.release_created
Expand Down Expand Up @@ -266,13 +265,12 @@ jobs:
name: combined-artifacts

- name: PROD - Prepare release PR
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/v2.x'
uses: GoogleCloudPlatform/release-please-action@v3
with:
command: release-pr
release-type: simple
package-name: ${{ github.event.repository.name }}
default-branch: main

- name: DEV - Prepare GitHub release
if: needs.build.outputs.do_dev_release
Expand Down Expand Up @@ -322,7 +320,7 @@ jobs:
rm -rf docs/.git*
# Extract top-level documentation resources
# TODO Should we do this only when building a release, or also for dev_main,
# TODO Should we do this only when building a release, or also for dev_v2.x,
# or for all (dev & release) versions like we do now?
unzip -o artifacts/docs-gh-pages.zip -d "docs"
Expand Down

0 comments on commit a454968

Please sign in to comment.