File tree 1 file changed +52
-0
lines changed
1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CIPP Frontend Build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - dev
7
+ workflow_dispatch :
8
+
9
+ permissions :
10
+ contents : write
11
+
12
+ jobs :
13
+ build :
14
+ if : github.event.repository.fork == false
15
+ name : Build and Upload CIPP Frontend
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ # Checkout the repository
20
+ - name : Checkout Code
21
+ uses : actions/checkout@v3
22
+
23
+ # Set up Node.js
24
+ - name : Set up Node.js
25
+ uses : actions/setup-node@v3
26
+ with :
27
+ node-version : ' 20.18.1'
28
+
29
+ # Install dependencies
30
+ - name : Install Dependencies
31
+ run : yarn install
32
+
33
+ # Build the project
34
+ - name : Build Project
35
+ run : npm run build
36
+
37
+ # Create ZIP File in a New Source Directory
38
+ - name : Prepare and Zip Build Files
39
+ run : |
40
+ mkdir -p build
41
+ cp staticwebapp.config.json out/
42
+ zip -r build/dev.zip out
43
+
44
+ # Upload to Azure Blob Storage
45
+ - name : Azure Blob Upload
46
+ uses :
LanceMcCarthy/[email protected]
47
+ with :
48
+ connection_string : ${{ secrets.AZURE_CONNECTION_STRING }}
49
+ container_name : cipp
50
+ source_folder : build/
51
+ destination_folder : /
52
+ delete_if_exists : true
You can’t perform that action at this time.
0 commit comments