mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-12-12 21:20:24 +00:00
Compare commits
4 commits
9f325c1f32
...
3ecfbc478b
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ecfbc478b | |||
| 066e8ac26a | |||
| 21cc259e05 | |||
| a3d5e9ce6c |
3 changed files with 27 additions and 7 deletions
30
.github/workflows/deploy.yml
vendored
30
.github/workflows/deploy.yml
vendored
|
|
@ -43,11 +43,6 @@ jobs:
|
|||
tar -xvzf hugo.tar.gz
|
||||
sudo mv hugo /usr/local/bin
|
||||
|
||||
- name: Build Hugo Website
|
||||
id: build
|
||||
run: |
|
||||
hugo
|
||||
|
||||
- name: Install SSH Key
|
||||
run: |
|
||||
install -m 600 -D /dev/null ~/.ssh/id_rsa
|
||||
|
|
@ -59,5 +54,30 @@ jobs:
|
|||
User build
|
||||
IdentityFile ~/.ssh/id_rsa
|
||||
EOL
|
||||
|
||||
- name: Build Hugo Website
|
||||
id: build
|
||||
run: |
|
||||
hugo
|
||||
|
||||
- name: Deploy
|
||||
run: ./deploy.sh
|
||||
|
||||
- name: Install Onion SSH Key
|
||||
run: |
|
||||
install -m 600 -D /dev/null ~/.ssh/id_onion
|
||||
echo "${{ secrets.ONION_BUILD_SSH_KEY }}" > ~/.ssh/id_onion
|
||||
cat <<EOL >> ~/.ssh/config
|
||||
Host Rozek-Nimbus-Onion
|
||||
Hostname 158.69.216.99
|
||||
User build
|
||||
IdentityFile ~/.ssh/id_onion
|
||||
EOL
|
||||
|
||||
- name: Build Onion Website
|
||||
run: |
|
||||
hugo --baseURL "http://brozek63j22jry6gof2vszo27vh2ed327bqismqu3somrqu622z73eid.onion/" --destination "public-onion"
|
||||
|
||||
- name: Deploy onion website
|
||||
run: |
|
||||
rsync -Pazc --exclude=*.bak --delete public-onion/ build@Rozek-Nimbus-Onion:brandonrozek-onion/
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
{{ $profile_image := resources.Get (printf "img/%s" .Site.Params.avatar) }}
|
||||
{{ $profile_width := 250 }}
|
||||
{{ $profile_image := $profile_image.Resize (printf "%dx webp q75" $profile_width) }}
|
||||
<img class="avatarMask u-photo" width="{{ $profile_width }}" height="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}" alt="Photo of {{ .Site.Params.Author }}">
|
||||
<img class="avatarMask u-photo" width="{{ $profile_width }}" height="{{ $profile_width }}" src="{{ $profile_image.Permalink }}" alt="Photo of {{ .Site.Params.Author }}">
|
||||
<!-- <img src="{{ .Site.BaseURL }}img/avatar-border.svg" alt="Photo of {{ .Site.Params.Author }}"> -->
|
||||
</div>
|
||||
<!-- author -->
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 39126b0d064055d0e5a4490e9588494969244634
|
||||
Subproject commit a49100eee9c37817c8ed34be775b1dadc504b756
|
||||
Loading…
Add table
Add a link
Reference in a new issue