Workflow: Use package manager hugo
Build and deploy site / deploy (push) Failing after 9s
Details
Build and deploy site / deploy (push) Failing after 9s
Details
This commit is contained in:
parent
5b56659821
commit
ec4ac4dcb2
|
@ -17,20 +17,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
- name: Install apt packages
|
- name: Install apt packages
|
||||||
run: apt update && apt install -y jq rsync
|
run: apt update && apt install -y jq rsync hugo
|
||||||
- name: Get latest Hugo version
|
|
||||||
run: |
|
|
||||||
url=$(curl --silent "https://api.github.com/repos/gohugoio/hugo/releases/latest" | jq -r '.assets[] | select(.name | contains("linux-amd64.tar.gz")) | .browser_download_url' | grep -E 'hugo_[0-9]+\.[0-9]+\.[0-9]+_linux-amd64.tar.gz')
|
|
||||||
wget -P /tmp/hugo/ "$url"
|
|
||||||
version=$(echo "$url" | grep -oP 'hugo_\K[0-9]+\.[0-9]+\.[0-9]+')
|
|
||||||
echo "Downloaded Hugo version: $version"
|
|
||||||
- name: Unpack Hugo
|
|
||||||
run: |
|
|
||||||
mkdir -p ${{ gitea.workspace }}/bin
|
|
||||||
tar -xf /tmp/hugo/* -C ${{ gitea.workspace }}/bin
|
|
||||||
chmod 700 ${{ gitea.workspace }}/bin/hugo
|
|
||||||
- name: Build the static webpage
|
- name: Build the static webpage
|
||||||
run: ${{ gitea.workspace }}/bin/hugo --minify
|
run: hugo --minify
|
||||||
- name: Create private key
|
- name: Create private key
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.ACT_RUNNER_KEY }}" > /tmp/act_runner_key
|
echo "${{ secrets.ACT_RUNNER_KEY }}" > /tmp/act_runner_key
|
||||||
|
|
Loading…
Reference in New Issue