更新CI for Web

This commit is contained in:
ParticleG
2023-06-15 21:36:39 +08:00
parent b5cd0be057
commit ed11faf909
8 changed files with 500 additions and 0 deletions

View File

@@ -557,6 +557,34 @@ jobs:
name: ${{ needs.get-info.outputs.update-title }}
prerelease: ${{ startsWith(github.ref, 'refs/tags/pre') }}
build-web:
runs-on: ubuntu-latest
needs: [get-info, build-core, auto-test]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Download core love package
uses: actions/download-artifact@v3
with:
name: ${{ env.CORE_LOVE_ARTIFACT_NAME }}
- name: Move core love package
run: |
mv ${{ env.CORE_LOVE_PACKAGE_PATH }} ./.github/build/web/game.data
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
build_dir: ./.github/build/web/
keep_history: false
target_branch: web-dev
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ needs.get-info.outputs.base-name }}_Web_PWA
path: ./.github/build/web/
build-windows:
runs-on: windows-latest
needs: [get-info, build-core, auto-test]
@@ -660,6 +688,7 @@ jobs:
build-linux,
build-macos-appstore,
build-macos-portable,
build-web,
build-windows,
]
env: