-
Notifications
You must be signed in to change notification settings - Fork 0
155 lines (150 loc) · 6.18 KB
/
static.yml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pull projects repository
run: |
git clone --branch remote-build https://github.com/aakashdinkarh/projects.git temp-projects
mkdir -p projects
rm -rf projects/*
mv temp-projects/* projects/
rm -rf temp-projects
- name: Pull bounce-and-collect-game repository
run: |
git clone --branch remote-build https://github.com/aakashdinkarh/bounce-and-collect-game.git temp-bounce-and-collect-game
mkdir -p bounce-and-collect-game
rm -rf bounce-and-collect-game/*
mv temp-bounce-and-collect-game/* bounce-and-collect-game/
rm -rf temp-bounce-and-collect-game
- name: Pull portfolio-v1 repository
run: |
git clone --branch remote-build https://github.com/aakashdinkarh/portfolio-v1.git temp-portfolio-v1
mkdir -p portfolio-v1
rm -rf portfolio-v1/*
mv temp-portfolio-v1/* portfolio-v1/
rm -rf temp-portfolio-v1
- name: Pull portfolio-v0 repository
run: |
git clone --branch remote-build https://github.com/aakashdinkarh/portfolio-v0.git temp-portfolio-v0
mkdir -p portfolio-v0
rm -rf portfolio-v0/*
mv temp-portfolio-v0/* portfolio-v0/
rm -rf temp-portfolio-v0
- name: Pull case-utils repository
run: |
git clone --branch remote-build https://github.com/aakashdinkarh/case-utils.git temp-case-utils
mkdir -p case-utils
rm -rf case-utils/*
mv temp-case-utils/* case-utils/
rm -rf temp-case-utils
- name: Pull block-game repository
run: |
git clone --branch remote-build https://github.com/aakashdinkarh/block-game.git temp-block-game
mkdir -p block-game
rm -rf block-game/*
mv temp-block-game/* block-game/
rm -rf temp-block-game
- name: Pull panda-img repository
run: |
git clone --branch remote-build https://github.com/aakashdinkarh/panda-img.git temp-panda-img
mkdir -p panda-img
rm -rf panda-img/*
mv temp-panda-img/* panda-img/
rm -rf temp-panda-img
- name: Pull calculator repository
run: |
git clone --branch remote-build https://github.com/aakashdinkarh/calculator.git temp-calculator
mkdir -p calculator
rm -rf calculator/*
mv temp-calculator/* calculator/
rm -rf temp-calculator
- name: Pull MemoryGame repository
run: |
git clone --branch remote-build https://github.com/aakashdinkarh/MemoryGame.git temp-MemoryGame
mkdir -p MemoryGame
rm -rf MemoryGame/*
mv temp-MemoryGame/* MemoryGame/
rm -rf temp-MemoryGame
- name: Pull Image-modal repository
run: |
git clone --branch remote-build https://github.com/aakashdinkarh/Image-modal.git temp-Image-modal
mkdir -p Image-modal
rm -rf Image-modal/*
mv temp-Image-modal/* Image-modal/
rm -rf temp-Image-modal
- name: Pull checkout-form repository
run: |
git clone --branch remote-build https://github.com/aakashdinkarh/checkout-form.git temp-checkout-form
mkdir -p checkout-form
rm -rf checkout-form/*
mv temp-checkout-form/* checkout-form/
rm -rf temp-checkout-form
- name: Pull Login-form repository
run: |
git clone --branch remote-build https://github.com/aakashdinkarh/Login-form.git temp-Login-form
mkdir -p Login-form
rm -rf Login-form/*
mv temp-Login-form/* Login-form/
rm -rf temp-Login-form
- name: Pull Tic-Tac-Toe-Game repository
run: |
git clone --branch gh-pages https://github.com/aakashdinkarh/Tic-Tac-Toe-Game.git temp-Tic-Tac-Toe-Game
mkdir -p Tic-Tac-Toe-Game
rm -rf Tic-Tac-Toe-Game/*
mv temp-Tic-Tac-Toe-Game/* Tic-Tac-Toe-Game/
rm -rf temp-Tic-Tac-Toe-Game
- name: Pull the-movie-db repository
run: |
git clone --branch gh-pages https://github.com/aakashdinkarh/the-movie-db.git temp-the-movie-db
mkdir -p the-movie-db
rm -rf the-movie-db/*
mv temp-the-movie-db/* the-movie-db/
rm -rf temp-the-movie-db
- name: Pull music-player-project repository
run: |
git clone --branch gh-pages https://github.com/aakashdinkarh/music-player-project.git temp-music-player-project
mkdir -p music-player-project
rm -rf music-player-project/*
mv temp-music-player-project/* music-player-project/
rm -rf temp-music-player-project
- name: Pull todo-react-app repository
run: |
git clone --branch gh-pages https://github.com/aakashdinkarh/todo-react-app.git temp-todo-react-app
mkdir -p todo-react-app
rm -rf todo-react-app/*
mv temp-todo-react-app/* todo-react-app/
rm -rf temp-todo-react-app
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4