fucking ubuntu shit outdated repos, fuck canonical
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 11s
Some checks failed
Deploy website on production server when committing on main / test (push) Failing after 11s
This commit is contained in:
parent
3a7beeade5
commit
911d274467
@ -17,7 +17,11 @@ jobs:
|
||||
steps:
|
||||
- run: echo "${{ secrets.SSH_PRIVATE_KEY }}" > /private.key
|
||||
- run: chmod 600 /private.key
|
||||
- run: apt update && apt install -y hugo
|
||||
- run: |
|
||||
export HUGO_VERSION=$(curl --silent -I https://github.com/gohugoio/hugo/releases/latest | grep location | sed 's|.*tag/||' | tr -d '\r')
|
||||
export HUGO_VERSION_SHORT=$(echo ${HUGO_VERSION} | sed 's/v//')
|
||||
wget https://github.com/gohugoio/hugo/releases/download/${HUGO_VERSION}/hugo_${HUGO_VERSION_SHORT}_linux-amd64.deb
|
||||
dpkg -i hugo_*.deb
|
||||
- uses: actions/checkout@v4
|
||||
- run: APP_VERSION=latest make
|
||||
- run: |
|
||||
|
2
makefile
2
makefile
@ -4,7 +4,7 @@ include .vars
|
||||
default: build
|
||||
|
||||
prep:
|
||||
git submodule foreach --recursive bash -c "git checkout $$(git remote show origin | grep HEAD | sed 's/.*\: //'); git pull"
|
||||
git submodule foreach --recursive bash -c "git checkout \$$(git remote show origin | grep HEAD | sed 's/.*\: //'); git pull"
|
||||
|
||||
build: prep
|
||||
./version.sh
|
||||
|
Loading…
Reference in New Issue
Block a user