chore(master): release java 1.19.0 (#512) #770
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
name: API CLients | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-go: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- | |
name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19.6 | |
- name: Build and Deploy π | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npm run generate.go | |
git clone https://[email protected]/phrase/phrase-go.git clones/go &> /dev/null | |
rsync -avI --delete --exclude='.git/' clients/go/ clones/go | |
cd clones/go | |
git status --verbose | |
if [ -n "$(git status --porcelain)" ]; then | |
git config --global user.email "[email protected]" | |
git config --global user.name "Phrase" | |
git add . | |
git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}" | |
PACKAGE_VERSION=$(awk '/- Package version:/{print $NF}' README.md) | |
git tag -a v$PACKAGE_VERSION -m v$PACKAGE_VERSION || true | |
git push --tags origin master | |
else | |
echo " No changes, skipping." | |
fi | |
build-cli: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- | |
name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.19.6 | |
- name: Build and Deploy π | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npm run generate.cli | |
git clone https://[email protected]/phrase/phrase-cli.git clones/cli &> /dev/null | |
rsync -avI --delete --exclude='.git/' clients/cli/ clones/cli | |
cd clones/cli | |
git status --verbose | |
if [ -n "$(git status --porcelain)" ]; then | |
git config --global user.email "[email protected]" | |
git config --global user.name "Phrase" | |
git add . | |
git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}" | |
PACKAGE_VERSION=$(awk '/- Package version:/{print $NF}' README.md) | |
git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true | |
git push --tags origin master | |
else | |
echo " No changes, skipping." | |
fi | |
build-ruby: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Build and Deploy π | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npm run generate.ruby | |
git clone https://[email protected]/phrase/phrase-ruby.git clones/ruby &> /dev/null | |
rsync -avI --delete --exclude='.git/' clients/ruby/ clones/ruby | |
cd clones/ruby | |
git status --verbose | |
if [ -n "$(git status --porcelain)" ]; then | |
git config --global user.email "[email protected]" | |
git config --global user.name "Phrase" | |
git add . | |
git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}" | |
PACKAGE_VERSION=$(awk '/- Package version:/{print $NF}' README.md) | |
git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true | |
git push --tags origin master | |
else | |
echo " No changes, skipping." | |
fi | |
build-typescript: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Build and Deploy π | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npm run generate.typescript | |
git clone https://[email protected]/phrase/phrase-js.git clones/typescript &> /dev/null | |
rsync -avI --delete --exclude='.git/' clients/typescript/ clones/typescript | |
cd clones/typescript | |
git status --verbose | |
if [ -n "$(git status --porcelain)" ]; then | |
git config --global user.email "[email protected]" | |
git config --global user.name "Phrase" | |
git add . | |
git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}" | |
PACKAGE_VERSION=$(awk '/- Package version:/{print $NF}' README.md) | |
git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true | |
git push --tags origin master | |
else | |
echo " No changes, skipping." | |
fi | |
build-python: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Build and Deploy π | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npm run generate.python | |
git clone https://[email protected]/phrase/phrase-python.git clones/python &> /dev/null | |
rsync -avI --delete --exclude='.git/' clients/python/ clones/python | |
cd clones/python | |
git status --verbose | |
if [ -n "$(git status --porcelain)" ]; then | |
git config --global user.email "[email protected]" | |
git config --global user.name "Phrase" | |
git add . | |
git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}" | |
PACKAGE_VERSION=$(awk '/- Package version:/{print $NF}' README.md) | |
git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true | |
git push --tags origin master | |
else | |
echo " No changes, skipping." | |
fi | |
build-java: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Build and Deploy π | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npm run generate.java | |
git clone https://[email protected]/phrase/phrase-java.git clones/java &> /dev/null | |
rsync -avI --delete --exclude='.git/' clients/java/ clones/java | |
cd clones/java | |
git status --verbose | |
if [ -n "$(git status --porcelain)" ]; then | |
git config --global user.email "[email protected]" | |
git config --global user.name "Phrase" | |
git add . | |
git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}" | |
PACKAGE_VERSION=$(awk '/- Package version:/{print $NF}' README.md) | |
git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true | |
git push --tags origin master | |
else | |
echo " No changes, skipping." | |
fi | |
build-php: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout ποΈ | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Build and Deploy π | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npm run generate.php | |
git clone https://[email protected]/phrase/phrase-php.git clones/php &> /dev/null | |
rsync -avI --delete --exclude='.git/' clients/php/ clones/php | |
cd clones/php | |
git status --verbose | |
if [ -n "$(git status --porcelain)" ]; then | |
git config --global user.email "[email protected]" | |
git config --global user.name "Phrase" | |
git add . | |
git commit --message "Deploying from phrase/openapi@${GITHUB_SHA::8}" | |
PACKAGE_VERSION=$(awk '/- Package version:/{print $NF}' README.md) | |
git tag -a $PACKAGE_VERSION -m $PACKAGE_VERSION || true | |
git push --tags origin master | |
else | |
echo " No changes, skipping." | |
fi |