File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 url : ${{ steps.deployment.outputs.page_url }}
2121 runs-on : ubuntu-latest
2222 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/$GITHUB_REPOSITORY/actions/artifacts/${id}/zip" > ~/versioned/${id}.zip
29- unzip -u -d ~/versioned/docs ~/versioned/${id}.zip
30- done
3123 - uses : actions/checkout@v6
3224 - uses : actions/setup-node@v4
3325 with :
4133 pnpm install
4234 pnpm run build
4335 popd
44- - run : cp -r ~/versioned/docs/* docs/dist/
45- - run : cp ~/versioned/docs.json docs/dist/versions.json
4636 - name : Setup Pages
4737 uses : actions/configure-pages@v5
4838 - name : Upload artifact
You can’t perform that action at this time.
0 commit comments