Updated build again, again, again #68
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: Release Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Set up Node.js 20 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
- name: Cache Node modules | |
uses: actions/cache@v3 | |
with: | |
path: | | |
node_modules | |
key: npm-${{ hashFiles('package-lock.json') }} | |
- name: Setup semantic-release | |
run: npm install | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
with: | |
cache-disabled: true | |
- name: Build with Gradle | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
signingKey: "keystore.jks" | |
keyStorePassword: ${{ secrets.SIGNING_KEYSTORE_PASSWORD }} | |
keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }} | |
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
run: | | |
echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > app/keystore.jks | |
npx semantic-release |