Skip to content

altera o icone de autor #80

altera o icone de autor

altera o icone de autor #80

Workflow file for this run

name: CI
on:
push:
branches: ["**"]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
id-token: write
pages: write
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 22
cache: npm
- run: npm ci --prefer-offline --no-audit --fund=false
- run: npm run check
env:
JCEM_BUILD_VERSION: ${{ github.sha }}
- name: Validate Pages artifact root
run: |
test -f dist/CNAME
test -f dist/.nojekyll
test ! -e dist/src
test ! -e dist/dist
test ! -f dist/README.md
test -n "$(find dist -name '*.bundle.zip' -print -quit)"
test -z "$(find dist -name '*.bundle.html' -print -quit)"
- name: Generate deployed version index
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
JCEM_DEPLOY_VERSION: ${{ github.sha }}
run: npm run generate:version-index
- name: Validate deployed version index
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
JCEM_DEPLOY_VERSION: ${{ github.sha }}
run: node -e "const fs=require('node:fs');const v=JSON.parse(fs.readFileSync('dist/version.json'));if(v.hash!==process.env.JCEM_DEPLOY_VERSION||!Number.isSafeInteger(v.timestamp))process.exit(1)"
- uses: actions/configure-pages@v6
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
- uses: actions/upload-pages-artifact@v5
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
path: dist
include-hidden-files: true
deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: validate
runs-on: ubuntu-latest
timeout-minutes: 10
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5