Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
ci: enable GitHub Pages deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Fernando Fernández <[email protected]>
  • Loading branch information
ferferga committed Feb 29, 2024
1 parent 549b777 commit afa43a0
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Stable deployment 🕊️📦

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
- main
paths-ignore:
- "**/*.md"

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
name: Build 🚧
runs-on: ubuntu-latest

steps:
- name: Checkout ⬇️
uses: actions/[email protected]
with:
show-progress: false

- name: Setup node environment ⚙️
uses: actions/[email protected]
with:
node-version: 20
check-latest: true

- name: Install dependencies 📦
run: npm ci --no-audit

- name: Run build 🏗️
run: npm run build

- name: Upload GitHub Pages artifact ⬆️
uses: actions/[email protected]
with:
path: dist

- name: Deploy to GitHub Pages 🚀
uses: actions/[email protected]

0 comments on commit afa43a0

Please sign in to comment.