Modular, context-aware and aspect-oriented dendritic Nix configurations. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ den.oeiuwq.com
configurations den dendritic nix aspect oriented
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

use versioned artifact ids

+19 -3
+19 -3
.github/workflows/gh-pages.yml
··· 12 12 group: "pages" 13 13 cancel-in-progress: true 14 14 jobs: 15 + versioned: 16 + runs-on: ubuntu-latest 17 + outputs: 18 + artifactIds: ${{ steps.artifactIds.outputs.artifactIds }} 19 + versions: ${{ steps.versions.outputs.versions }} 20 + steps: 21 + - run: gh api "/repos/$GITHUB_REPOSITORY/actions/artifacts" | tee ~/artifacts.json 22 + - run: jq -r '.artifacts | map({id,name} | select(.name | match("docs-"))) | group_by(.name) | map(.[0]) ~/artifacts.json | tee ~/docs.json 23 + - id: artifactIds 24 + run: | 25 + jq -r 'map(.id) | join(",")' ~/docs.json | tee ~/artifactIds 26 + echo "artifactIds=$(cat ~/artifactIds)" | tee $GITHUB_OUTPUT 27 + - id: versions 28 + run: | 29 + jq -r 'map(.name | sub("docs-";"")) | join(",")' ~/docs.json | tee ~/versions 30 + echo "versions=$(cat ~/versions)" | tee $GITHUB_OUTPUT 15 31 deploy: 32 + needs: [versioned] 16 33 environment: 17 34 name: github-pages 18 35 url: ${{ steps.deployment.outputs.page_url }} ··· 28 45 pnpm install 29 46 pnpm run build 30 47 popd 31 - - run: | 32 - curl https://api.github.com/repos/vic/den/releases | jq 'map(.tag_name) + ["main","latest"]' | tee docs/dist/versions.json 48 + - run: echo "${{needs.versioned.outputs.versions}}" | tee docs/dist/versions 33 49 - uses: actions/download-artifact@v8 34 50 with: 35 - pattern: "docs-*" 51 + artifact-ids: ${{needs.versioned.outputs.artifactIds}} 36 52 path: "./docs/dist" 37 53 merge-multiple: true 38 54 - name: Setup Pages