Merge branch 'devel' #1
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: Deploy modules to GitHub Pages. | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm install | |
- name: Generate Libraries | |
run: npm run build | |
- name: Upload artifact for GitHub Pages | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./example | |
name: github-pages | |
retention-days: 1 | |
deploy: | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
artifact_name: github-pages |