This commit is contained in:
@@ -1,17 +1,24 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- name: Install Hugo
|
||||
run: |
|
||||
wget -O hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_extended_0.145.0_linux-amd64.deb
|
||||
dpkg -i hugo.deb
|
||||
|
||||
- name: Build
|
||||
run: hugo --minify
|
||||
|
||||
- name: Deploy
|
||||
run: |
|
||||
scp -r public/* /var/www/codejava.tech/
|
||||
mkdir -p /var/www/codejava.tech
|
||||
rsync -a --delete public/ /var/www/codejava.tech/
|
||||
|
||||
Reference in New Issue
Block a user