Skip to content

Commit

Permalink
Merge pull request #433 from gurgenyegoryan/main-dev
Browse files Browse the repository at this point in the history
Add Rebase Action
  • Loading branch information
ashvardanian authored Sep 1, 2023
2 parents cbfc38e + 1d7b38e commit ba5ed5a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ name: Pre-Release
on:
push:
branches: ["main-dev"]
pull_request:
branches: ["main-dev"]

workflow_dispatch: {}

Expand All @@ -27,7 +29,7 @@ jobs:
build_ustore_amd64:
name: Build Libraries on AMD
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' }}
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request'}}
steps:
- uses: actions/checkout@v3
with:
Expand Down Expand Up @@ -203,4 +205,4 @@ jobs:
export USTORE_TEST_PATH="./tmp/"
sed -i 's/make -j/make -j4/' /home/runner/work/ustore/ustore/java/pack.sh
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64"
bash /home/runner/work/ustore/ustore/java/pack.sh
bash /home/runner/work/ustore/ustore/java/pack.sh
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,31 @@ jobs:
- uses: actions/setup-node@v3
- run: cp .github/workflows/package.json . && npm install && npx semantic-release


rebase:
name: Rebase Dev. Branch
needs: versioning
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Perform rebase
run: |
git fetch origin main
git checkout main-dev
git rebase origin/main
- name: Push changes
uses: CasperWA/push-protected@v2
with:
token: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
branch: main-dev
unprotect_reviews: True
force: True

# Single deploy job since we're just deploying
deploy:
name: Deploy Docs
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'maven-publish'
}

group "cloud.unum.ustore"
group "cloud.unum"
version = file("VERSION").text.trim()

sourceCompatibility = 1.8
Expand Down

0 comments on commit ba5ed5a

Please sign in to comment.