mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-12-10 20:20:24 +00:00
Onion build
This commit is contained in:
parent
21cc259e05
commit
066e8ac26a
1 changed files with 12 additions and 1 deletions
13
.github/workflows/deploy.yml
vendored
13
.github/workflows/deploy.yml
vendored
|
|
@ -63,10 +63,21 @@ jobs:
|
|||
- 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 "brozek63j22jry6gof2vszo27vh2ed327bqismqu3somrqu622z73eid.onion" --destination "public-onion"
|
||||
|
||||
- name: Deploy onion website
|
||||
run: |
|
||||
rsync -Pazc --exclude=*.bak --delete public-onion/ build@Rozek-Nimbus:brandonrozek-onion/
|
||||
rsync -Pazc --exclude=*.bak --delete public-onion/ build@Rozek-Nimbus-Onion:brandonrozek-onion/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue