this repo has no description
at main 1.3 kB view raw
1name: Nightly builds on GitHub Pages 2 3on: 4 push: 5 branches: 6 - develop 7 8permissions: 9 contents: read 10 pages: write 11 id-token: write 12 13jobs: 14 nightly: 15 name: Nightly builds on GitHub Pages 16 runs-on: ubuntu-latest 17 steps: 18 - uses: actions/checkout@v4 19 - uses: pnpm/action-setup@v4 20 - uses: actions/setup-node@v4 21 with: 22 node-version: 22 23 cache: pnpm 24 25 - name: Install dependencies 26 run: pnpm install --frozen-lockfile 27 - name: Build moonlight 28 env: 29 NODE_ENV: production 30 MOONLIGHT_BRANCH: nightly 31 MOONLIGHT_VERSION: ${{ github.sha }} 32 run: pnpm run build 33 34 - name: Write ref/commit to file 35 run: | 36 cd ./dist 37 tar -czf ../dist.tar.gz * 38 cd .. 39 mv ./dist.tar.gz ./dist/dist.tar.gz 40 find ./dist -type f -not -path "./dist/files" > ./dist/files 41 echo "${{ github.sha }}" > ./dist/ref 42 echo "${{ github.ref }}" >> ./dist/ref 43 echo "$(date +%s)" >> ./dist/ref 44 45 - name: Setup GitHub Pages 46 uses: actions/configure-pages@v5 47 - name: Upload artifact 48 uses: actions/upload-pages-artifact@v3 49 with: 50 path: ./dist 51 - name: Deploy to GitHub Pages 52 uses: actions/deploy-pages@v4