diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index c062776..98c890c 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -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/ \ No newline at end of file + - 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/