WIP TODO: Fix deployment workflow - wrong paths #37
1 changed files with 8 additions and 9 deletions
|
|
@ -1,5 +1,10 @@
|
|||
name: Deploy on webserver
|
||||
|
||||
defaults:
|
||||
run:
|
||||
# hugo container only has `sh`
|
||||
shell: sh
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
|
|
@ -8,7 +13,7 @@ on:
|
|||
jobs:
|
||||
deploy:
|
||||
name: Build site and deploy on success
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: hugo-latest
|
||||
container:
|
||||
volumes:
|
||||
# for depositing the built site directly
|
||||
|
|
@ -20,14 +25,8 @@ jobs:
|
|||
recursive: true
|
||||
get_content: .
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: https://github.com/peaceiris/actions-hugo@v3
|
||||
with:
|
||||
hugo-version: '0.146.0'
|
||||
extended: true
|
||||
|
||||
- name: Generate site
|
||||
run: hugo
|
||||
|
||||
- name: Deploy
|
||||
run: mv public /www/www-draft.distribits.live && mv /www/www.distribits.live /www/old_www-draft.distribits.live; mv /www/www-draft.distribits.live /www/www.distribits.live; rm -rf /www/old_www-draft.distribits.live/
|
||||
- name: Deploy BUT WHERETO?
|
||||
run: mv public /www/www-draft.distribits.live && mv /www/www.distribits.live /www/old_www-draft.distribits.live; mv /www/www-draft.distribits.live /www/www.distribits.live; rm -rf /www/old_www-draft.distribits.live/
|
||||
|
|
|
|||
Loading…
Reference in a new issue