This commit is contained in:
parent
b83ab258c3
commit
9901e7c2d0
1 changed files with 9 additions and 4 deletions
|
@ -4,7 +4,7 @@ on: [push]
|
|||
jobs:
|
||||
deploy:
|
||||
name: Deploy Website
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Set up SSH key
|
||||
run: |
|
||||
|
@ -12,12 +12,17 @@ jobs:
|
|||
echo "${{ secrets.DEPLOY_PRIVATE_KEY }}" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
|
||||
- name: Install packages
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get -y install rsync
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v3
|
||||
uses: https://github.com/peaceiris/actions-hugo@v3
|
||||
with:
|
||||
hugo-version: '0.140.2'
|
||||
hugo-version: '0.145.0'
|
||||
extended: true
|
||||
|
||||
- name: Build
|
||||
|
@ -26,4 +31,4 @@ jobs:
|
|||
- name: Upload Repository
|
||||
if: github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
rsync -e "ssh -p 38901 -o StrictHostKeyChecking=no" --recursive public/ deploy@ryne.moe:/srv/http/xiv.zone
|
||||
rsync -e "ssh -p 38901 -o StrictHostKeyChecking=no" --recursive --delete public/ deploy@ryne.moe:/srv/http/xiv.zone
|
Loading…
Add table
Reference in a new issue