this repo has no description
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@v3
19
20 - uses: pnpm/action-setup@v2
21 with:
22 version: 9
23 run_install: false
24 - uses: actions/setup-node@v3
25 with:
26 node-version: 18
27 cache: pnpm
28
29 - name: Install dependencies
30 run: pnpm install --frozen-lockfile
31 - name: Build moonlight
32 env:
33 NODE_ENV: production
34 MOONLIGHT_BRANCH: nightly
35 MOONLIGHT_VERSION: ${{ github.sha }}
36 run: pnpm run build
37
38 - name: Write ref/commit to file
39 run: |
40 cd ./dist
41 tar -czf ../dist.tar.gz *
42 cd ..
43 mv ./dist.tar.gz ./dist/dist.tar.gz
44 find ./dist -type f -not -path "./dist/files" > ./dist/files
45 echo "${{ github.sha }}" > ./dist/ref
46 echo "${{ github.ref }}" >> ./dist/ref
47 echo "$(date +%s)" >> ./dist/ref
48
49 - name: Setup GitHub Pages
50 uses: actions/configure-pages@v5
51 - name: Upload artifact
52 uses: actions/upload-pages-artifact@v3
53 with:
54 path: ./dist
55 - name: Deploy to GitHub Pages
56 uses: actions/deploy-pages@v4