mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-12-11 12:40:25 +00:00
Added onion build and deploy
This commit is contained in:
parent
a3d5e9ce6c
commit
21cc259e05
1 changed files with 14 additions and 5 deletions
19
.github/workflows/deploy.yml
vendored
19
.github/workflows/deploy.yml
vendored
|
|
@ -43,11 +43,6 @@ jobs:
|
||||||
tar -xvzf hugo.tar.gz
|
tar -xvzf hugo.tar.gz
|
||||||
sudo mv hugo /usr/local/bin
|
sudo mv hugo /usr/local/bin
|
||||||
|
|
||||||
- name: Build Hugo Website
|
|
||||||
id: build
|
|
||||||
run: |
|
|
||||||
hugo
|
|
||||||
|
|
||||||
- name: Install SSH Key
|
- name: Install SSH Key
|
||||||
run: |
|
run: |
|
||||||
install -m 600 -D /dev/null ~/.ssh/id_rsa
|
install -m 600 -D /dev/null ~/.ssh/id_rsa
|
||||||
|
|
@ -59,5 +54,19 @@ jobs:
|
||||||
User build
|
User build
|
||||||
IdentityFile ~/.ssh/id_rsa
|
IdentityFile ~/.ssh/id_rsa
|
||||||
EOL
|
EOL
|
||||||
|
|
||||||
|
- name: Build Hugo Website
|
||||||
|
id: build
|
||||||
|
run: |
|
||||||
|
hugo
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: ./deploy.sh
|
run: ./deploy.sh
|
||||||
|
|
||||||
|
- 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/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue