-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 987 Bytes
/
deploy.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
name: Github Pages CICD Pipeline
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
if: env.ACT != 'true'
uses: actions/configure-pages@v5
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
- name: Local Artifact Simulation
if: env.ACT == 'true'
run: |
echo "Simulating artifact upload for local testing"
# Add any necessary local artifact simulation steps here
- name: Deploy to GitHub Pages
if: env.ACT != 'true'
id: deployment
uses: actions/deploy-pages@v4
- name: Local Deployment Simulation
if: env.ACT == 'true'
run: |
echo "Simulating deployment for local testing"
# Add any local deployment simulation steps here