프로젝트 순서 재정렬 및 slot 로고 추가 #10
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: Build and Deploy GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
env: | |
NODE_ENV: production | |
VITE_KEYCLOAK_URL: https://key.jbnu.ac.kr | |
VITE_KEYCLOAK_REALMS: JEduTools | |
- name: Create CNAME | |
run: echo "jedutools.jbnu.ac.kr" > ./dist/CNAME | |
- name: Deploy pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist |