Compare commits
10
Commits
633b3bb380
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d94c42939 | ||
|
|
2808b32cd1 | ||
|
|
0b3c13db0b | ||
|
|
f9f8a95d4b | ||
|
|
3d9d5d870b | ||
|
|
91f5c2bbfa | ||
|
|
6ec10da715 | ||
|
|
52ca66e6c3 | ||
|
|
368fdbc965 | ||
|
|
cca8cba42e |
@@ -8,17 +8,23 @@ on:
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:20-bullseye
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v $(pwd):/src \
|
||||
-w /src \
|
||||
klakegg/hugo:latest
|
||||
wget https://github.com/gohugoio/hugo/releases/download/v0.147.1/hugo_0.147.1_linux-amd64.tar.gz
|
||||
tar -xzf hugo_0.147.1_linux-amd64.tar.gz
|
||||
./hugo
|
||||
|
||||
- name: Deploy
|
||||
env:
|
||||
SSH_KEY: ${{ secrets.HUGO_SSH_PRIVATE }}
|
||||
run: |
|
||||
rm -rf /web/personal/*
|
||||
cp -r public/* /web/personal/
|
||||
mkdir -p ~/.ssh
|
||||
echo "$SSH_KEY" > ~/.ssh/id_ed25519
|
||||
chmod 600 ~/.ssh/id_ed25519
|
||||
ssh-keyscan tokyo >> ~/.ssh/known_hosts
|
||||
scp -r public/* hugo@tokyo:/home/hugo/personal/
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# Hello
|
||||
|
||||
This is my site.
|
||||
|
||||
Eu amo a lorrany
|
||||
|
||||
hi thomas
|
||||
|
||||
Reference in New Issue
Block a user