diff --git a/.gitea/workflows/hugo.yaml b/.gitea/workflows/hugo.yaml index 83a5567..f41a1f8 100644 --- a/.gitea/workflows/hugo.yaml +++ b/.gitea/workflows/hugo.yaml @@ -10,14 +10,14 @@ jobs: steps: - uses: actions/checkout@v3 - name: Install rsync - run: sudo apt-get update && sudo apt-get install -y rsync + run: apt-get update && apt-get install -y rsync - name: Grab dependencies run: | - sudo apt-get update && \ - sudo apt-get install -y jq tar wget && \ + apt-get update && \ + apt-get install -y jq tar wget && \ wget -O hugo.tar.gz $(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.assets[] | select(.name | test("hugo_[^extended].*_Linux-64bit.tar.gz")) | .browser_download_url') && \ tar -xzvf hugo.tar.gz && \ - sudo chmod +x hugo + chmod +x hugo - name: Run build task run: ./hugo --minify --logLevel info - name: Deploy to Server