File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 runs-on : ubuntu-latest
2323 defaults :
2424 run :
25- working-directory : pyscript.core
25+ working-directory : ./ pyscript.core
2626 steps :
2727 - name : Checkout
2828 uses : actions/checkout@v4
5555 working-directory : .
5656 run : sed 's#_PATH_#https://pyscript.net/unstable/#' ./public/index.html > ./pyscript.core/dist/index.html
5757
58- - uses : actions/upload-artifact@v3
59- with :
60- name : pyscript
61- path : |
62- pyscript.core/dist/
63- if-no-files-found : error
64- retention-days : 7
65-
66- eslint :
67- runs-on : ubuntu-latest
68- defaults :
69- run :
70- working-directory : pyscript.core
71- steps :
72- - name : Checkout
73- uses : actions/checkout@v4
74-
75- - name : Install node
76- uses : actions/setup-node@v3
77- with :
78- node-version : 18.x
79-
80- - name : Cache node modules
81- uses : actions/cache@v3
82- env :
83- cache-name : cache-node-modules
84- with :
85- # npm cache files are stored in `~/.npm` on Linux/macOS
86- path : ~/.npm
87- key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
88- restore-keys : |
89- ${{ runner.os }}-build-${{ env.cache-name }}-
90- ${{ runner.os }}-build-
91- ${{ runner.os }}-
92-
93- - name : npm install
94- run : npm install
95-
96- - name : Eslint
97- run : npx eslint src -c .eslintrc.js
98-
99- publish-unstable :
100- runs-on : ubuntu-latest
101- defaults :
102- run :
103- working-directory : pyscript.core
104- needs : build-unstable
105- if : github.ref == 'refs/heads/main' # Only deploy on merge into main
106- permissions :
107- contents : read
108- id-token : write
109-
110- steps :
111- - uses : actions/download-artifact@v3
112- with :
113- name : pyscript
114- path : ./dist/
115-
11658 # Deploy to S3
11759 - name : Configure AWS credentials
11860 uses : aws-actions/configure-aws-credentials@v1.6.1
You can’t perform that action at this time.
0 commit comments