diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 3769780..6af2093 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -23,12 +23,21 @@ jobs: hugo-version: '0.119.0' extended: true - - name: Build + - name: Build Hugo env: HUGO_ENV: production URL_DEVELOPMENT: ${{ vars.URL_DEVELOPMENT }} run: hugo --minify -b "$URL_DEVELOPMENT/$GITHUB_REF_NAME" --destination "branch/$GITHUB_REF_NAME" + - name: Update nodes count + run: | + cd branch/$GITHUB_REF_NAME/static + LASTCHANGE=$(date --iso-8601=seconds) + ls + # sed -i "/\"lastchange\":/c\ \"lastchange\":\"$$LASTCHANGE\"," static/berlin.json && \ + # NODECOUNT=$$(curl -s 'https://hopglass.berlin.freifunk.net/nodes.json' | jq '.nodes | length') && \ + # sed -i "/\"nodes\":/c\ \"nodes\":$$NODECOUNT" static/berlin.json + - name: Create robots.txt run: 'echo -e "User-agent: *\nDisallow: /" > branch/robots.txt'