Add Web view tab for HTML/XHTML snippets and transform outputs #135
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: Create dist | |
| on: | |
| push: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| concurrency: | |
| group: dist | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: yarn | |
| - name: Install dependencies and build | |
| run: | | |
| npm install -g yarn | |
| yarn install | |
| VITE_DYNAMIC_BASE_URL=true yarn build | |
| cp dist/index.html dist/404.html | |
| - name: Push to dist | |
| uses: s0/git-publish-subdir-action@v2.6.0 | |
| env: | |
| REPO: self | |
| BRANCH: dist | |
| FOLDER: dist | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |