1
0
Fork 0
This commit is contained in:
Digital Studium 2023-05-09 15:45:05 +03:00
parent 39283f63b6
commit 08ac35c8e5
1 changed files with 8 additions and 10 deletions

View File

@ -10,22 +10,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Fetch repo
uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
# - name: Fetch repo
# uses: actions/checkout@v3
# with:
# submodules: true # Fetch Hugo themes (true OR recursive)
# fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
- name: Build
uses: https://github.com/peaceiris/actions-hugo@v2.6.0
with:
hugo-version: "0.110.0"
extended: true
- name: Build website
run: hugo --minify
- name: Deploy to Server
- name: Deploy
uses: https://github.com/easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
@ -33,4 +31,4 @@ jobs:
SOURCE: "public/"
REMOTE_HOST: digitalstudium.com
REMOTE_USER: root
TARGET: /srv/digitalstudium.com
TARGET: /srv/digitalstudium.com