Skip to content

배포 설정 변경 #31

배포 설정 변경

배포 설정 변경 #31

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
build:
permissions:
id-token: write
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout source code.
uses: actions/checkout@v3
- name: NodeJS Installation ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: build
run: CI='false' npm run build
working-directory: ./src
- name: Cache node modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-modules-
- name: Deploy to xquare
uses: team-xquare/xquare-deployment-action@master
with:
environment: prod
base_url: ${{ secrets.BASE_URL }}
access_key: ${{ secrets.ACCESS_KEY }}
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
buildargs: |
DBASE_URL=${{ secrets.BASE_URL }}