File tree Expand file tree Collapse file tree 2 files changed +29
-12
lines changed
frontend/components/Navbar Expand file tree Collapse file tree 2 files changed +29
-12
lines changed Original file line number Diff line number Diff line change 77
88jobs :
99 deployment :
10- # Only run deploy if required secrets are configured
11- if : ${{ secrets.HOST != '' && secrets.USERNAME != '' && secrets.SSHKEY != '' }}
1210 runs-on : ubuntu-latest
1311 steps :
12+ - name : Check deploy secrets
13+ id : check_secrets
14+ env :
15+ HOST : ${{ secrets.HOST }}
16+ USERNAME : ${{ secrets.USERNAME }}
17+ SSHKEY : ${{ secrets.SSHKEY }}
18+ PORT : ${{ secrets.PORT }}
19+ run : |
20+ missing=false
21+ for var in HOST USERNAME SSHKEY PORT; do
22+ if [ -z "${!var}" ]; then
23+ echo "Missing required secret: $var"
24+ missing=true
25+ fi
26+ done
27+ if [ "$missing" = "true" ]; then
28+ echo "can_deploy=false" >> "$GITHUB_OUTPUT"
29+ echo "Deploy skipped because required secrets are not configured."
30+ else
31+ echo "can_deploy=true" >> "$GITHUB_OUTPUT"
32+ fi
33+
1434 - name : Deploy Docker Compose
35+ if : ${{ steps.check_secrets.outputs.can_deploy == 'true' }}
1536 uses : appleboy/ssh-action@master
1637 with :
1738 host : ${{ secrets.HOST }}
Original file line number Diff line number Diff line change @@ -119,16 +119,12 @@ const GlobalNavbar: React.FC = () => {
119119 height = { 39 }
120120 />
121121 ) : (
122- < svg
123- xmlns = "http://www.w3.org/2000/svg"
124- width = "39"
125- height = "39"
126- fill = "currentColor"
127- className = "bi bi-file-person-fill"
128- viewBox = "0 0 16 16"
129- >
130- < path d = "M12 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m-1 7a3 3 0 1 1-6 0 3 3 0 0 1 6 0m-3 4c2.623 0 4.146.826 5 1.755V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-1.245C3.854 11.825 5.377 11 8 11" />
131- </ svg >
122+ < Image
123+ src = "/img_avatar.png"
124+ alt = "Profile"
125+ width = { 39 }
126+ height = { 39 }
127+ />
132128 ) ) }
133129 { authButton ( ) }
134130 < AccountModal />
You can’t perform that action at this time.
0 commit comments