2023-09-10 13:14:46 +03:00
|
|
|
name: build 11ty site
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ["main"]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: "pages"
|
|
|
|
cancel-in-progress: false
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
- name: Install dependencies & build
|
|
|
|
run: |
|
|
|
|
npm ci
|
|
|
|
npm run build:prod
|
|
|
|
- uses: actions/upload-pages-artifact@v2
|
|
|
|
with:
|
2023-09-10 13:30:50 +03:00
|
|
|
path: "dist"
|
2023-09-10 13:14:46 +03:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: build
|
|
|
|
steps:
|
|
|
|
- id: deployment
|
2023-09-10 13:30:50 +03:00
|
|
|
uses: actions/deploy-pages@v2
|