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.

inline download archives

+10 -24
+10 -24
.github/workflows/gh-pages.yml
··· 14 14 env: 15 15 GH_TOKEN: ${{ github.token }} 16 16 jobs: 17 - versioned: 18 - runs-on: ubuntu-latest 19 - outputs: 20 - artifactIds: ${{ steps.artifactIds.outputs.artifactIds }} 21 - versions: ${{ steps.versions.outputs.versions }} 22 - steps: 23 - - run: gh api "/repos/$GITHUB_REPOSITORY/actions/artifacts" | tee ~/artifacts.json 24 - - run: jq -r '.artifacts | map({id,name} | select(.name | match("docs-"))) | group_by(.name) | map(.[0])' ~/artifacts.json | tee ~/docs.json 25 - - id: artifactIds 26 - run: | 27 - jq -r 'map(.id) | join(",")' ~/docs.json | tee ~/artifactIds 28 - echo "artifactIds=$(cat ~/artifactIds)" | tee $GITHUB_OUTPUT 29 - - id: versions 30 - run: | 31 - jq -r 'map(.name | sub("docs-";"")) | join(",")' ~/docs.json | tee ~/versions 32 - echo "versions=$(cat ~/versions)" | tee $GITHUB_OUTPUT 33 17 deploy: 34 - needs: [versioned] 35 18 environment: 36 19 name: github-pages 37 20 url: ${{ steps.deployment.outputs.page_url }} 38 21 runs-on: ubuntu-latest 39 22 steps: 23 + - run: mkdir -p ~/versioned/docs 24 + - run: gh api "/repos/$GITHUB_REPOSITORY/actions/artifacts" | tee ~/versioned/artifacts.json 25 + - run: jq -r '.artifacts | map({id,name} | select(.name | match("docs-"))) | group_by(.name) | map(.[0])' ~/versioned/artifacts.json | tee ~/versioned/docs.json 26 + - run: | 27 + for id in $(jq -r 'map(.id)|.[]' ~/versioned/docs.json); do 28 + gh api "/repos/$GTHUB_REPOSITORY/artifacts/${id}/zip" > ~/versioned/${id}.zip 29 + unzip -u -d ~/versioned/docs ~/versioned/${id}.zip 30 + done 40 31 - uses: actions/checkout@v6 32 + - run: cp ~/versioned/docs.json docs/src/components/versions.json 41 33 - uses: pnpm/action-setup@v4 42 34 with: 43 35 version: latest ··· 47 39 pnpm install 48 40 pnpm run build 49 41 popd 50 - - run: echo "${{needs.versioned.outputs.versions}}" | tee docs/dist/versions 51 - - uses: actions/download-artifact@v8 52 - with: 53 - artifact-ids: ${{needs.versioned.outputs.artifactIds}} 54 - path: "./docs/dist" 55 - merge-multiple: true 56 - github-token: ${{github.token}} 42 + - run: cp -r ~/versioned/docs/* docs/dist/ 57 43 - name: Setup Pages 58 44 uses: actions/configure-pages@v5 59 45 - name: Upload artifact