Skip to content

Commit

Permalink
chore: automate releasing for php, js, java
Browse files Browse the repository at this point in the history
  • Loading branch information
theSoenke committed Dec 14, 2023
1 parent 66fa046 commit 146271e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ jobs:
git config --global user.name "Phrase"
git add .
git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}"
git push origin master
git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true
git push --tags origin master
else
echo " No changes, skipping."
fi
Expand Down Expand Up @@ -220,7 +221,8 @@ jobs:
git config --global user.name "Phrase"
git add .
git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}"
git push origin master
git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true
git push --tags origin master
else
echo " No changes, skipping."
fi
28 changes: 24 additions & 4 deletions clients/java/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,37 @@ on:
- '*'

jobs:
build:
name: build
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8' ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --no-transfer-progress --file pom.xml

release:
runs-on: ubuntu-latest
needs: build
steps:
-
name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
-
name: Set up JDK 1.8
uses: actions/setup-java@v1
name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: '8'
distribution: 'temurin'
cache: maven
-
name: Version
id: version
Expand Down

0 comments on commit 146271e

Please sign in to comment.