forked from honglinyuan/cloud-computing-lab-github
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (23 loc) · 722 Bytes
/
Copy pathstatic.yml
File metadata and controls
30 lines (23 loc) · 722 Bytes
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
name: Cloud-Deployment-Pipeline
on:
workflow_dispatch:
push:
branches: ["main"] # Triggers the workflow on every push to the main branch
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest # Allocates a Virtual Machine (Ubuntu) in the cloud
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Cloud Environment
uses: actions/configure-pages@v4
- name: Upload Artifact to Cloud Storage
uses: actions/upload-pages-artifact@v3
with:
path: '.' # Uploads the index.html from root
- name: Execute Deployment
uses: actions/deploy-pages@v4