-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkings-w5.txt
More file actions
137 lines (92 loc) · 3.16 KB
/
workings-w5.txt
File metadata and controls
137 lines (92 loc) · 3.16 KB
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
utu-green-programming
W5 workings
git clone https://gitlab.utu.fi/green-programming/alien-plant-calculator.git
cd alien-plant-calculator
git remote add github https://github.com/KaiquanMah/utu-alien-plant-calculator.git
git branch -m master main
git push github main --force
transfer all branches and logs
git push github --all
git push github --tags
mkdir -p .github/workflows
cat << EOF > .github/workflows/deploy.yml
> name: Deploy to GitHub Pages
>
> on:
> push:
> branches: [main] # Triggers on pushes to the main branch
>
> jobs:
> deploy:
> runs-on: ubuntu-latest
> permissions:
> contents: write # permissions for pushing to GitHub Pages
> steps:
> - name: Checkout
> uses: actions/checkout@v4
>
> - name: Deploy to GitHub Pages
> uses: peaceiris/actions-gh-pages@v4
> with:
> github_token: \${{ secrets.GITHUB_TOKEN }}
> publish_dir: ./public # Matches GitLab's artifact path
> EOF
git add .github/workflows/deploy.yml
git commit -m "Add GitHub Actions to deploy to GitHub Pages"
git push github main
rm .gitlab-ci.yml
git add .
git status
git commit -m "remove gitlab-ci"
git push github main
to check GitHub page deployed from GitHub actions
in the repo > settings > pages > build: github actions
wait for a few minutes
https://kaiquanmah.github.io/utu-alien-plant-calculator/
git add .
git status
git commit -m "index.html optimised, app.js fetchConstants, calculateRecomm 3-into-1 for loop"
git push github main
continue from Issue 8 - Multiple for loops for findRecommendations
git add .
git status
git commit -m "app.js findRecommendations consolidated 4 for loops round 2"
git push github main
git add .
git status
git commit -m "app.js cache constants.json, data.json"
git push github main
git add .
git status
git commit -m "app.js cache-filterLargeDataset-collectStats1Go, index.html lazy load, click on video_thumbnail then load, cache _headers"
git push github main
pull LICENSE fie from GitHub repo (created manually)
git pull github main
git clone to repo 2 for retest
(https://github.com/KaiquanMah/utu-alien-plant-calculator-v2.git)
git clone https://github.com/KaiquanMah/utu-alien-plant-calculator.git
cd utu-alien-plant-calculator
git remote add github https://github.com/KaiquanMah/utu-alien-plant-calculator-v2.git
git push github main --force
fetch bug fixes for retest
git remote add origin https://github.com/KaiquanMah/utu-alien-plant-calculator.git
git remote add v2 https://KaiquanMah:<yourGitHubPAT>@github.com/KaiquanMah/utu-alien-plant-calculator-v2.git
# Fetch updates from the original repo
git fetch origin
# Checkout the branch you want to work with (e.g., main)
git checkout main
# Pull changes (equivalent to fetch + merge)
git pull origin main
# Clone the repository (HTTPS with Personal Access Token for authentication)
git clone https://KaiquanMah:<yourGitHubPAT>@github.com/KaiquanMah/utu-alien-plant-calculator.git
git remote -v
cd utu-alien-plant-calculator
git remote add github https://github.com/KaiquanMah/utu-alien-plant-calculator-v2.git
git remote -v
git push github main --force
utu-green vm
=====
key pair
name: utu
<RSA>
.pem format