Skip to content

Merge pull request #13 from hfidelis/@refactor #25

Merge pull request #13 from hfidelis/@refactor

Merge pull request #13 from hfidelis/@refactor #25

Workflow file for this run

name: gh-pages deploy ~hfidelis
on:
push:
branches: ['main']
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- name: setup node.js πŸ“¦
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: install dependencies πŸ”§
run: npm install
- name: build project πŸ—οΈ
run: npm run build && cp ./dist/index.html ./dist/404.html
- name: setup pages πŸ“„
uses: actions/configure-pages@v3
- name: upload artifact πŸ“¦
uses: actions/upload-pages-artifact@v2
with:
path: './dist'
- name: deploy gh-pages hfidelis.github.io πŸš€
id: deployment
uses: actions/deploy-pages@v2