parent
d5b5b31640
commit
aecdf56a71
1 changed files with 14 additions and 9 deletions
|
@ -10,14 +10,19 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- run: ls -la
|
- run: ls -la
|
||||||
- name: Setup Hugo
|
- name: Setup Hugo
|
||||||
uses: https://github.com/peaceiris/actions-hugo@v2
|
env:
|
||||||
with:
|
HUGO_VERSION: 0.100.1
|
||||||
hugo-version: '0.119.0'
|
run: |
|
||||||
extended: true
|
mkdir ~/hugo
|
||||||
|
cd ~/hugo
|
||||||
|
curl -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz" --output hugo.tar.gz
|
||||||
|
tar -xvzf hugo.tar.gz
|
||||||
|
sudo mv hugo /usr/local/bin
|
||||||
- name: Build
|
- name: Build
|
||||||
run: hugo --minify
|
run: hugo --minify
|
||||||
- run: ls -la public
|
- name: Create Key File
|
||||||
|
run: install -m 600 -D /dev/null ~/.ssh/id_edsa
|
||||||
|
- name: Populate Key
|
||||||
|
run: echo "${{ secrets.SRV06_DEPLOY_WEBSITE_SSH_KEY }}" > ~/.ssh/id_edsa
|
||||||
|
- name: Upload
|
||||||
|
run: rsync --archive --stats -e 'ssh -o StrictHostKeyChecking=no' public/ forgejo_actions_websites@srv06.lefuturiste.fr:/warmd/mbess/websites/hugo-sandbox/public
|
||||||
|
|
Loading…
Reference in a new issue