forked from eclipse-tractusx/tractusx-edc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: rename git branches (eclipse-tractusx#218)
* refactor: update branch names and references in our documentation * publish packages to tractus-x
- Loading branch information
1 parent
a092447
commit 77807cf
Showing
23 changed files
with
77 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 |
---|---|---|
|
@@ -23,7 +23,7 @@ on: | |
paths: | ||
- 'charts/**' | ||
branches: | ||
- main | ||
- releases | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
This file contains 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 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 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 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ name: "Publish new release" | |
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- releases | ||
- support/* | ||
types: | ||
- closed | ||
|
@@ -67,18 +67,17 @@ jobs: | |
- name: Import GPG Key | ||
uses: crazy-max/ghaction-import-gpg@v5 | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
|
||
- name: Publish release version | ||
run: | | ||
echo "Publishing Version $(grep -e "version" gradle.properties | cut -f2 -d"=") to Github Packages" | ||
./gradlew publishAllPublicationsToGithubPackagesRepository | ||
env: | ||
#REPO: ${{ github.repository }} | ||
REPO: "catenax-ng/product-edc" | ||
GITHUB_PACKAGE_USERNAME: ${{ secrets.TEMP_GHPKG_USER }} | ||
GITHUB_PACKAGE_PASSWORD: ${{ secrets.TEMP_GHPKG_PASSWORD }} | ||
REPO: ${{ github.repository }} | ||
GITHUB_PACKAGE_USERNAME: ${{ github.actor }} | ||
GITHUB_PACKAGE_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Release: Helm Charts | ||
helm-release: | ||
|
@@ -128,7 +127,7 @@ jobs: | |
git push origin gh-pages | ||
# Release: GitHub tag & release; Merges back main into develop; Starts a new development cycle; | ||
# Release: GitHub tag & release; Merges back releases into main; Starts a new development cycle; | ||
github-release: | ||
name: Publish new github release | ||
needs: [ release-version ] | ||
|
@@ -148,7 +147,7 @@ jobs: | |
name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
# 0 to fetch the full history due to upcoming merge of main into develop branch | ||
# 0 to fetch the full history due to upcoming merge of releases into main branch | ||
fetch-depth: 0 | ||
- | ||
name: Create Release Tag | ||
|
@@ -185,15 +184,15 @@ jobs: | |
distribution: 'temurin' | ||
cache: 'gradle' | ||
- | ||
name: Merge main back into develop and set new snapshot version | ||
if: github.event.pull_request.base.ref == 'main' | ||
name: Merge releases back into main and set new snapshot version | ||
if: github.event.pull_request.base.ref == 'releases' | ||
run: | | ||
# Prepare git env | ||
git config user.name "GitHub actions" | ||
git config user.email [email protected] | ||
# Merge main into develop | ||
git checkout develop && git merge -X theirs main --no-commit --no-ff | ||
# Merge releases into main | ||
git checkout main && git merge -X theirs releases --no-commit --no-ff | ||
# Extract release version | ||
IFS=. read -r RELEASE_VERSION_MAJOR RELEASE_VERSION_MINOR RELEASE_VERSION_PATCH<<<"${{ env.RELEASE_VERSION }}" | ||
|
@@ -204,8 +203,8 @@ jobs: | |
# Persist the "version" in the gradle.properties | ||
sed -i "s/version=.*/version=$SNAPSHOT_VERSION/g" gradle.properties | ||
# Commit and push to origin develop | ||
# Commit and push to origin main | ||
git add gradle.properties | ||
git commit --message "Introduce new snapshot version $SNAPSHOT_VERSION" | ||
git push origin develop | ||
git push origin main |
This file contains 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 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 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 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.