File tree Expand file tree Collapse file tree 1 file changed +35
-1
lines changed
Expand file tree Collapse file tree 1 file changed +35
-1
lines changed Original file line number Diff line number Diff line change 3030 uses : actions/upload-artifact@v4
3131 with :
3232 name : ocp_vscode-wheel
33- path : dist/*.whl
33+ path : dist/*.whl
34+ retention-days : 90
35+
36+ - name : Display artifact URL
37+ run : |
38+ echo "Artifact URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts"
39+ echo "Download URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts/ocp_vscode-wheel"
40+
41+ deploy_to_github_pages :
42+ needs : build
43+ runs-on : ubuntu-latest
44+ steps :
45+ - name : Checkout gh-pages branch
46+ uses : actions/checkout@v4
47+ with :
48+ ref : gh-pages
49+
50+ - name : Download wheel artifact
51+ uses : actions/download-artifact@v4
52+ with :
53+ name : ocp_vscode-wheel
54+ path : .
55+
56+ - name : Extract wheel
57+ run : |
58+ unzip ocp_vscode-wheel.zip
59+ mv dist/*.whl .
60+
61+ - name : Deploy to GitHub Pages
62+ run : |
63+ git config user.name "github-actions[bot]"
64+ git config user.email "github-actions[bot]@users.noreply.github.com"
65+ git add -v .
66+ git commit -m "Update wheel" || echo "No changes to commit"
67+ git push origin gh-pages
You can’t perform that action at this time.
0 commit comments