ci: avatar components change #16
Workflow file for this run
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 to GitHub Pages | |
on: | |
push: | |
branches: [dev-jzl] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout your repository using git | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: yarn | |
- name: Build your project | |
run: yarn run docs:build | |
- name: Remove ~demos/:id | |
run: rm -rf ./docs-dist/~demos/:id | |
- name: Show build output directory | |
run: ls -la ./docs-dist | |
- name: Upload build artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
name: github-pages | |
path: ./docs-dist | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v3 |