-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.47 KB
/
build-wasm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: build-wasm
run-name: ${{ github.actor }} ${{ github.event_name }} to ${{ github.base_ref }}
on:
pull_request:
branches: [main,develop]
pull_request_target:
types: [closed]
branches: [main]
jobs:
build-html:
uses: EddyTheCo/Common/.github/workflows/[email protected]
permissions:
pages: write
id-token: write
with:
qtModules: 'qtwebsockets qtshadertools '
qtVersion: '6.6.0'
emsdkVersion: '3.1.37'
deploy_dev: ${{ (github.event.pull_request.merged == false)&&(startsWith(github.base_ref, 'main'))&&(startsWith(github.head_ref, 'develop')) }}
deploy_wasm:
needs: build-html
if: ${{ (startsWith(github.base_ref, 'main'))&&(startsWith(github.head_ref, 'develop')) }}
runs-on: 'ubuntu-latest'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: build-html
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifacts
- name: Display structure of downloaded files
run: ls -R
- name: Releases
uses: softprops/action-gh-release@v1
with:
files: ./artifacts/*/*