Merge pull request #246 from moonlight-mod/kasimir/cm-popout-fix #366
Workflow file for this run
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: Nightly builds on GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| nightly: | |
| name: Nightly builds on GitHub Pages | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build moonlight | |
| env: | |
| NODE_ENV: production | |
| MOONLIGHT_BRANCH: nightly | |
| MOONLIGHT_VERSION: ${{ github.sha }} | |
| run: pnpm run build | |
| - name: Write ref/commit to file | |
| run: | | |
| cd ./dist | |
| tar -czf ../dist.tar.gz * | |
| cd .. | |
| mv ./dist.tar.gz ./dist/dist.tar.gz | |
| find ./dist -type f -not -path "./dist/files" > ./dist/files | |
| echo "${{ github.sha }}" > ./dist/ref | |
| echo "${{ github.ref }}" >> ./dist/ref | |
| echo "$(date +%s)" >> ./dist/ref | |
| - name: Setup GitHub Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./dist | |
| - name: Deploy to GitHub Pages | |
| uses: actions/deploy-pages@v4 |