Skip to content

chore: add host flag to dev command #66

chore: add host flag to dev command

chore: add host flag to dev command #66

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
PUBLIC_DOMAIN_NAME: ${{ secrets.DOMAIN_NAME }}
PUBLIC_TWITTER_USERNAME: ${{ secrets.TWITTER_USERNAME }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Install dependencies
run: npm ci
- name: Build
run: |
npm run build
touch build/.nojekyll
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v1
with:
path: 'build/'
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs:
- build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1