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 4148df1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 4148df1

Please sign in to comment.