diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index f1d837e..8ff249b 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,4 +1,4 @@ -name: Static Deploy +name: Hugo on: push: @@ -7,15 +7,15 @@ on: jobs: build: - runs-on: ubuntu-22.04 + runs-on: hugo-latest steps: - - uses: actions/checkout@v3 - with: - submodules: "recursive" - name: Grab packages - run: | - apt-get update && \ - apt-get install --no-install-recommends --no-install-suggests -y jq rsync + run: apk add rsync openssh-client + - uses: actions/checkout@v4 + with: + submodules: 'true' + - name: Run build task + run: hugo --minify - name: Test static page run: bash ${{ gitea.workspace }}/bin/test_static_page.sh - name: Deploy to Server @@ -26,4 +26,4 @@ jobs: SOURCE: "public/" REMOTE_HOST: ${{ secrets.REMOTE_HOST }} REMOTE_USER: ${{ secrets.REMOTE_USER }} - TARGET: ${{ secrets.REMOTE_TARGET }} + TARGET: ${{ secrets.REMOTE_TARGET }} \ No newline at end of file