CI/CD
This commit is contained in:
parent
12a6398193
commit
57d44bdf2a
|
@ -1,7 +1,7 @@
|
||||||
name: Homepage
|
name: Homepage
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
publish:
|
||||||
runs-on:
|
runs-on:
|
||||||
- hugo
|
- hugo
|
||||||
timeout-minutes: 1
|
timeout-minutes: 1
|
||||||
|
@ -15,10 +15,8 @@ jobs:
|
||||||
umask 077; cat > $HOME/.ssh/id_rsa <<EOD
|
umask 077; cat > $HOME/.ssh/id_rsa <<EOD
|
||||||
${{ secrets.SSH_PUBLISH_PRIVATE_KEY }}
|
${{ secrets.SSH_PUBLISH_PRIVATE_KEY }}
|
||||||
EOD
|
EOD
|
||||||
ls -l $HOME/.ssh
|
|
||||||
md5sum $HOME/.ssh/*
|
md5sum $HOME/.ssh/*
|
||||||
- name: Clone git repository
|
- run: git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
|
||||||
run: git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
|
|
||||||
- run: hugo
|
- run: hugo
|
||||||
- name: Install built site
|
- name: Install built site
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue