meilisearch-admin/.github/workflows/deploy.yml
2023-05-19 08:37:18 +03:00

34 lines
678 B
YAML

name: Build and Deploy
on:
release:
types: [published]
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
# TODO: replace to https://github.com/actions/upload-pages-artifact
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist