Skip to content

Commit

Permalink
flake.lock: Update
Browse files Browse the repository at this point in the history
Flake lock file updates:

• Updated input 'website':
    'github:dd-ix/website/c6299f51ab08201a32dce19ceb1d847d71786781?narHash=sha256-MEqKIypt2B38MxdQo0TQy/A/aC4NPQUa%2BIZZce2md4Q%3D' (2024-08-10)
  → 'github:dd-ix/website/e12c414107cb78295520664a17d80972fa09764a?narHash=sha256-Ws64/OJDz4IYv/XkMsDxHZACuYIDCeggwk9IiwVZzmM%3D' (2024-08-11)
• Updated input 'website-content-api':
    'github:dd-ix/website-content-api/8eaca6a3e3d06cbb96f4151b7b77e49f9a51d754?narHash=sha256-K3XNDBhZHDvOD78rXKG3AEOG9PRvju4O8gMLY9TJKMQ%3D' (2024-08-07)
  → 'github:dd-ix/website-content-api/348c19417f0a14bdb9ea4cc835ac2c8f21fc6fff?narHash=sha256-EgQO7LTWfHeFsMd2Nbf0wJrsnWxreLcQWQ8cG6kOqgo%3D' (2024-08-11)
  • Loading branch information
MarcelCoding committed Aug 11, 2024
1 parent 91f6bf4 commit 56e3754
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 68 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,13 @@ jobs:
- name: Build
run: nix build -L

- uses: actions/upload-artifact@v4
with:
name: website
path: result

deploy:
runs-on: ubuntu-latest
needs: build

steps:
- name: Checkout repository
uses: actions/checkout@v4

- uses: actions/upload-artifact@v4
with:
name: website-static
path: result

- name: Patch
run: |
mv result result-old
mkdir result
cp -r result-old/* result
chmod +w -R result
echo "User-agent: *\nDisallow: /" > result/browser/robots.txt
echo "User-agent: *\nDisallow: /" > result/robots.txt
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/result
11 changes: 4 additions & 7 deletions derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,9 @@ stdenv.mkDerivation {
foundation --content-directory ./content/ &
APP_DIR=${frontend} node ${frontend}/server.mjs &
sleep 1
wget --recursive --page-requisites --convert-links --no-parent --continue --adjust-extension http://127.0.0.1:4000/en/|| true
mkdir $out
lndir ${frontend}/browser $out
(cd "127.0.0.1:4000" && find . -type f -name '*.html' -exec bash -c '(mkdir -p ${placeholder "out"}/$(dirname {}) && mv {} ${placeholder "out"}/{})' \;)
(cd "127.0.0.1:4000" && find . -type f -name '*.css' -exec bash -c '(mkdir -p ${placeholder "out"}/$(dirname {}) && mv {} ${placeholder "out"}/{})' \;)
mv "127.0.0.1:8080" $out
find $out -type f -name '*.js' -delete
mkdir data
wget --recursive --page-requisites --no-parent --convert-links --continue --adjust-extension http://127.0.0.1:4000/ || true
find '127.0.0.1:4000' -type f -iname '*.js' -delete
mv '127.0.0.1:4000' $out
'';
}
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 0 additions & 35 deletions impressum-unter.kontakt.md

This file was deleted.

1 change: 0 additions & 1 deletion result

This file was deleted.

0 comments on commit 56e3754

Please sign in to comment.