Skip to content

🚀 Prepare build pipeline #13

🚀 Prepare build pipeline

🚀 Prepare build pipeline #13

Workflow file for this run

name: pages
on:
push:
tags:
- '*'
permissions:
contents: read
pages: write
deployments: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
env:
PUBLIC_URL: https://radek2s.github.io/BetKeeper/
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18.13
cache: 'npm'
- run: npm ci
- run: npm run build:ci -- --base=$PUBLIC_URL
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1