Add split-view demo, styles #8
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: build and publish | |
| on: | |
| push: | |
| branches: [myget] | |
| pull_request: | |
| branches: [myget] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| # Examples: 20, 18.19, >=16.20.2, lts/Iron, lts/Hydrogen, *, latest, current, node | |
| # Ref: https://github.com/actions/setup-node#supported-version-syntax | |
| node-version: latest | |
| - name: Change Version | |
| run: npm version 6.2.${{ github.run_number }} --no-git-tag-version | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Build | |
| run: npm run build-vite | |
| - name: Publish | |
| uses: JS-DevTools/npm-publish@v4 | |
| with: | |
| token: ${{ secrets.MYGET_API_KEY }} | |
| registry: https://www.myget.org/F/where/npm | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: dev/dist | |
| deploy: | |
| if: github.event_name == 'push' || github.event_name == 'workflow_dispatch' | |
| 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 to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |