Release 1.0.0 #1
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: Deploy demo to GitHub Pages | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - 'demo/**' | |
| - 'src/**' | |
| - 'mudlet-colors.json' | |
| - '.github/workflows/deploy-demo.yml' | |
| workflow_dispatch: | |
| # Allow the GITHUB_TOKEN to deploy to Pages. | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Only one concurrent Pages deployment; let in-progress runs finish. | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| - name: Configure Pages | |
| uses: actions/configure-pages@v5 | |
| with: | |
| enablement: true | |
| - name: Install demo dependencies | |
| working-directory: demo | |
| run: yarn install --frozen-lockfile | |
| - name: Build demo | |
| working-directory: demo | |
| run: yarn build | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: demo/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@v4 |