Skip to content

Add "lang" and/or "xml:lang" attributes to this "<html>" element (#111) #24

Add "lang" and/or "xml:lang" attributes to this "<html>" element (#111)

Add "lang" and/or "xml:lang" attributes to this "<html>" element (#111) #24

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node env πŸ—
uses: actions/setup-node@v3
with:
node-version: 16
check-latest: true
cache: 'npm'
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: npm ci --prefer-offline --no-audit
- name: Run linter πŸ‘€
run: npm run lint
# - name: Run tests πŸ§ͺ
# run: npm run test
# - name: SonarCloud Scan πŸ‘Ύ
# uses: SonarSource/sonarcloud-github-action@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# with:
# args: >
# -Dsonar.organization=rendafixa
# -Dsonar.projectKey=rendafixa_rendafixa.github.io
- name: Setup Pages
uses: actions/configure-pages@v2
with:
static_site_generator: nuxt
- name: Restore cache
uses: actions/cache@v3
with:
path: |
dist
.nuxt
key: ${{ runner.os }}-nuxt-build-${{ hashFiles('dist') }}
restore-keys: |
${{ runner.os }}-nuxt-build-
- name: Deploy 😎
run: npm run generate
- name: Publish 🍻
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1