Skip to content

git: Make site work with custom domain #3

git: Make site work with custom domain

git: Make site work with custom domain #3

Workflow file for this run

name: Build and deploy
on:
push:
branches: ["*"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Upload build artifact
uses: actions/upload-pages-artifact@v2
with:
path: dist/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
name: 📃 Deploy to GitHub Pages
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' && github.event.repository.fork == false }}
needs: build
steps:
- name: 🌍 Deploy
id: deployment
uses: actions/deploy-pages@v2