Deno simplify shared tasks #422
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: webvi-experiments ci | |
on: | |
push: | |
branches: | |
- '*' | |
workflow_dispatch: | |
# Using example https://github.com/actions/starter-workflows/blob/51e3d515e95876eed0c47cd971e48fcf16c6705a/pages/static.yml | |
# 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: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: windows-2022 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'npm' | |
- name: Lint markdown | |
run: | | |
npm ci | |
npm test | |
- name: Install Editor | |
run: powershell .\BuildTools\install.ps1 | |
- name: Start capturing screenshots | |
working-directory: ./BuildTools/periodic-screenshot | |
run: | | |
npm ci | |
npm run start | |
- name: Build Projects | |
run: powershell .\BuildTools\build.ps1 | |
timeout-minutes: 60 | |
continue-on-error: true | |
- name: Stop capturing screenshots | |
working-directory: ./BuildTools/periodic-screenshot | |
run: npm run stop | |
- name: Upload screenshots | |
uses: actions/upload-artifact@v4 | |
with: | |
name: screenshots | |
path: ./BuildTools/periodic-screenshot/dist | |
- name: Create GitHub Pages Output | |
run: powershell .\BuildTools\ghpages.ps1 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './ghpagesbuild' | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |