Skip to content

Commit

Permalink
WIP: node list workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Dec 16, 2023
1 parent db44512 commit 569eca0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,20 @@ 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
LASTCHANGE=$$(date --iso-8601=seconds)
# 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'

Expand Down

0 comments on commit 569eca0

Please sign in to comment.