Skip to content

Update cicd.yml

Update cicd.yml #41

Workflow file for this run

name: CICD
on:
push:
branches:
- master
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.17.1'
- name: Install dependencies
run: npm install
- name: Build docusaurus
run: npm run build
- name: Rename folder
run: mv build/ _site/
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main