upd: add meta inform and prospoective site logo #2
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 on Netlify | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup backend services using Docker | |
run: docker-compose up -d | |
- name: Setup NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: "npm" | |
cache-dependency-path: package-lock.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Sleep for 10s | |
uses: juliangruber/sleep-action@v1 | |
with: | |
time: 10s | |
- name: Setup the API deployment URL in the environment | |
run: echo "API_BASE_URL=http:0.0.0.0:8080/api" >> $GITHUB_ENV | |
- name: Build the site | |
run: npm run build | |
- name: Deploy production to Netlify | |
uses: South-Paw/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }} | |
build-dir: "./dist" | |
comment-on-commit: false |