Skip to content

Commit

Permalink
add :: gitaction
Browse files Browse the repository at this point in the history
  • Loading branch information
rudeh2926 committed Feb 1, 2024
1 parent 6778be1 commit f237a7e
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/git-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: gradle-pick

on:
push:
branches: [ "main" ]

jobs:
build:
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: '17'

- name: Build Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: |
build
--build-cache
--no-daemon
- name: Deploy to xquare
uses: team-xquare/xquare-deployment-action@master
with:
environment: prod
access_key: ${{ secrets.ACCESS_KEY }}
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
buildargs: |
MYSQL_HOST=${{ secrets.MYSQL_HOST }}
MYSQL_USERNAME=${{ secrets.MYSQL_USERNAME }}
MYSQL_PASSWORD=${{ secrets.MYSQL_PASSWORD }}
REDIS_HOST=${{ secrets.REDIS_HOST }}

0 comments on commit f237a7e

Please sign in to comment.