Skip to content

Commit

Permalink
chore(release): Integrate shared workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Feb 1, 2023
1 parent 028045e commit 3282558
Showing 1 changed file with 7 additions and 40 deletions.
47 changes: 7 additions & 40 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,44 +49,11 @@ jobs:
SERVICE_ACCOUNT: ${{ secrets.CI_GCP_SERVICE_ACCOUNT }}

release:
name: "Deploy to Google Play Store"
needs: ci
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Grade dependencies
uses: actions/cache@v1
with:
path: ~/.gradle
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: eskatos/gradle-command-action@v1
with:
arguments: build
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: Cache Node.js dependencies
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Node.js dependencies
run: npm install
- name: Release
run: npx semantic-release
env:
ANDROID_KEYSTORE: ${{ secrets.ANDROID_KEYSTORE }}
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
ANDROID_KEYSTORE_KEY_ALIAS: ${{ secrets.ANDROID_KEYSTORE_KEY_ALIAS }}
ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
ANDROID_PUBLISHER_CREDENTIALS: ${{ secrets.PUBLISHER_GCP_SERVICE_ACCOUNT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: relaycorp/shared-workflows/.github/workflows/android-app-release.yml@main
secrets:
android_keystore: ${{ secrets.ANDROID_KEYSTORE }}
android_keystore_password: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
android_key_alias: ${{ secrets.ANDROID_KEYSTORE_KEY_ALIAS }}
android_key_password: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
android_publisher_credentials: ${{ secrets.PUBLISHER_GCP_SERVICE_ACCOUNT }}

0 comments on commit 3282558

Please sign in to comment.