Skip to content

Build and deploy

Build and deploy #19

Workflow file for this run

name: "Build and deploy"
on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch's name
push:
tags:
- "*"
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:
# Allow this job to clone the repo and create a page deployment
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
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Install and Build 🔧
run: |
npm ci
npm run docs
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs-dist # The folder the action should deploy.
# When running the Astro build, types and content are updated automatically
# This action commits the changes
- name: Commit changes from Astro 🚀
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update astro files (automated)
branch: main