Merge pull request #108 from DSM-Repo/refactor #129
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
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "configs/**" | |
- "packages/main/**" | |
jobs: | |
build: | |
permissions: | |
id-token: write | |
contents: read | |
name: Build | |
runs-on: ubuntu-latest | |
env: | |
SERVICE_NAME: main | |
steps: | |
- name: Check Out The Repository | |
uses: actions/checkout@v3 | |
- name: Deploy to xquare | |
uses: team-xquare/xquare-deployment-action@master | |
with: | |
environment: prod | |
access_key: ${{ secrets.MAIN_ACCESS_KEY }} | |
base_url: packages/${{ env.SERVICE_NAME }} | |
config_file_path: packages/${{ env.SERVICE_NAME }}/.xquare/config.yaml | |
buildargs: | | |
VITE_APP_BASE_URL=${{ secrets.VITE_SERVER_BASE_URL }} | |
VITE_APP_URL_MAIN=${{ secrets.VITE_APP_URL_MAIN }} | |
VITE_APP_URL_STUDENT=${{ secrets.VITE_APP_URL_STUDENT }} | |
VITE_APP_URL_TEACHER=${{ secrets.VITE_APP_URL_TEACHER }} |