- Notifications
You must be signed in to change notification settings - Fork97
Merge pull request #145 from github/copilot/convert-tests-to-vitest-p…#29
This file contains hidden or 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:Publish Pages site | |
on: | |
push: | |
branches: | |
-main | |
permissions: | |
contents:read | |
jobs: | |
build: | |
runs-on:ubuntu-latest | |
steps: | |
-uses:actions/checkout@v4 | |
-uses:actions/setup-node@v4 | |
with: | |
node-version:24 | |
cache:npm | |
-run:npm install | |
-run:npm run buildSite | |
-name:Fix permissions | |
run:| | |
chmod -c -R +rX "pages/" | while read line; do | |
echo "::warning title=Invalid file permissions automatically fixed::$line" | |
done | |
-uses:actions/upload-pages-artifact@v2 | |
with: | |
path:pages | |
deploy: | |
needs:build | |
permissions: | |
pages:write | |
id-token:write | |
environment: | |
name:github-pages | |
url:${{ steps.deployment.outputs.page_url }} | |
runs-on:ubuntu-latest | |
steps: | |
-id:deployment | |
uses:actions/deploy-pages@v2 |