Repository navigation
81 lines (64 loc) · 1.76 KB
/
Copy pathdeploy-prototype.yml
File metadata and controls
81 lines (64 loc) · 1.76 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Deploy prototype"
on:
push:
branches:
- "default"
paths:
- ".github/workflows/**"
- "src/**"
- "*.html"
- "*.css"
- "*.js"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
defaults:
run:
shell: pwsh
jobs:
build-prototype:
name: "Build prototype"
strategy:
matrix:
system:
- ubuntu-24.04
runs-on: ${{ matrix.system }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Build prototype
run: |
mkdir `
-p ${{ github.workspace }}/dist/
Copy-Item `
-Path ${{ github.workspace }}/src/* `
-Destination ${{ github.workspace }}/dist/ `
-Recurse
- name: Upload prototype
id: deployment
uses: actions/upload-pages-artifact@v5
with:
path: ${{ github.workspace }}/dist
deploy-prototype:
name: "Deploy prototype"
needs:
- build-prototype
strategy:
matrix:
system:
- ubuntu-24.04
runs-on: ${{ matrix.system }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy prototype
id: deployment
uses: actions/deploy-pages@v5