Skip to content

modification of links #43

modification of links

modification of links #43

Workflow file for this run

name: Deploying the calculator app to GH pages
on:
push:
branches:
- dev
- master
jobs:
lint_and_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install environment
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Running linter
run: npm run lint
- name: Testing the app
run: npm run test
build_and_deploy:
needs: lint_and_build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Running compiler
run: npm run build
- name: Generate file css
run: npm run compile_style
- name: Configure GH pages
uses: actions/configure-pages@v3
- run: cp index.html ./dist/
- name: Upload favicon
run: cp assets/images/favicon-32x32.png ./dist/
- name: Upload fonts
run: cp assets/fonts/League_Spartan/LeagueSpartan-Regular.ttf ./dist/style/
- uses: actions/upload-pages-artifact@v2
with:
path: ./dist/
- name: Deploy to GH pages
id: deployment
uses: actions/deploy-pages@v1