add logout button #14
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: CD Github Pages | |
on: | |
push: | |
branches: [main] | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./web_frontend | |
strategy: | |
matrix: | |
node-version: [20.x] | |
env: | |
NUXT_APP_BASE_URL: /messenger/ | |
NUXT_APP_BUILD_ASSETS_DIR: /nuxt/ | |
NUXT_PUBLIC_API_URL: "https://10.5.1.11:443" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install yarn | |
run: npm install --global yarn | |
- name: Install dependencies | |
run: yarn install | |
# Build | |
- name: Build project | |
run: yarn nuxi generate | |
# Copy gh pages config | |
- name: Copy pages config | |
run: cp ./gh_pages_config.yml ./.output/public/_config.yml | |
# Deploy | |
- name: Deploy to Github Pages 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: web_frontend/.output/public # The folder the action should deploy. |