File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 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+ - main
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 : npm 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+ zip -r build/latest.zip out
42+
43+ # Upload to Azure Blob Storage
44+ - name : Azure Blob Upload
45+ uses : LanceMcCarthy/Action-AzureBlobUpload@v3.3.0
46+ with :
47+ connection_string : ${{ secrets.AZURE_CONNECTION_STRING }}
48+ container_name : cipp
49+ source_folder : build/
50+ destination_folder : /
51+ delete_if_exists : true
52+
You can’t perform that action at this time.
0 commit comments