Skip to content

Merge pull request #23 from Fancy11111/patch-1 #34

Merge pull request #23 from Fancy11111/patch-1

Merge pull request #23 from Fancy11111/patch-1 #34

name: Friendly Docs
on:
push:
branches: [main]
jobs:
deploy:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"
cache-dependency-path: "./package-lock.json"
- name: Install dependencies and build
run: |
npm ci
npm run build
- name: Deploy to BunnyCDN
uses: ayeressian/[email protected]
with:
source: "build"
storageZoneName: "${{ secrets.STORAGE_NAME }}"
storagePassword: "${{ secrets.STORAGE_PASSWORD }}"
accessKey: "${{ secrets.STORAGE_KEY }}"
pullZoneId: "${{ secrets.ZONE_ID }}"
upload: "true"
remove: "true"
purgePullZone: "true"