WIP TODO: Fix deployment workflow - wrong paths #37

Open
adina wants to merge 2 commits from runner-ubuntu into main

View file

@ -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/