workflow simplify

This commit is contained in:
themelm 2025-05-25 02:41:17 -07:00
parent 67677960c9
commit c62d1a95ea

View file

@ -17,23 +17,17 @@ jobs:
fetch-depth: 0 # all history for all branches and tags\ fetch-depth: 0 # all history for all branches and tags\
- uses: https://forge.melm.xyz/melmco/setup-go@v5 - name: Install Go
with: wget -O go.tar.gz https://go.dev/dl/go1.24.3.linux-amd64.tar.gz
go-version: '>=1.21.0' rm -rf /usr/local/go && tar -C /usr/local -xzf go1.24.3.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go version
- name: Install Hugo - name: Install Hugo
run: | run: |
wget -O hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.144.2/hugo_extended_0.144.2_linux-amd64.deb wget -O hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.144.2/hugo_extended_0.144.2_linux-amd64.deb
dpkg -i hugo.deb dpkg -i hugo.deb
- uses: https://forge.melm.xyz/melmco/cache@v4
with:
path: |
~/.cache/go-build
~/go
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build - name: Build
run: | run: |