new bindings #23
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
# This Workflow builds a webapp with npm and deploys it to pages on version tags | |
# assumes building to the "dist" directory | |
name: Simple Web App CI | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup | Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | Node Install | |
run: npm ci | |
- name: Build | Build App | |
run: npm run build | |
- name: Build | Upload Artifact | |
uses: actions/[email protected] | |
with: | |
path: src/.vitepress/dist | |
retention-days: 7 | |
deploy: | |
name: Deploy | |
needs: | |
- build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy | GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |