File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 77 pull_request :
88 branches :
99 - main
10+ release :
11+ types :
12+ - published
1013
1114jobs :
1215 build :
4346
4447 - name : Run custom build script
4548 run : ./scripts/build.sh
49+
50+ - name : Upload python package artifact
51+ uses : actions/upload-artifact@v4
52+ with :
53+ name : python-dist
54+ path : packages/backend/dist/
55+
56+ - name : Upload docs artifact
57+ uses : actions/upload-pages-artifact@v3
58+ with :
59+ path : packages/docs/.vitepress/dist/
60+
61+ publish-pypi :
62+ runs-on : ubuntu-latest
63+ if : github.event_name == 'release'
64+ needs :
65+ - build
66+ permissions :
67+ id-token : write
68+
69+ environment :
70+ name : pypi
71+ url : https://pypi.org/p/embedding-atlas
72+
73+ steps :
74+ - name : Retrieve release distributions
75+ uses : actions/download-artifact@v4
76+ with :
77+ name : python-dist
78+ path : dist/
79+
80+ - name : Publish release distributions to PyPI
81+ uses : pypa/gh-action-pypi-publish@release/v1
82+ with :
83+ packages-dir : dist/
84+
85+ publish-pages :
86+ runs-on : ubuntu-latest
87+ if : github.event_name == 'release'
88+ needs :
89+ - build
90+ permissions :
91+ pages : write
92+ id-token : write
93+
94+ environment :
95+ name : github-pages
96+ url : ${{ steps.deployment.outputs.page_url }}
97+
98+ steps :
99+ - name : Deploy to GitHub Pages
100+ id : deployment
101+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments