Skip to content

Commit c308418

Browse files
committed
Update build-wheel.yml
1 parent 80d2677 commit c308418

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

.github/workflows/build-wheel.yml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,38 @@ jobs:
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

0 commit comments

Comments
 (0)