Skip to content

Commit

Permalink
Attempt to fix the github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarteau committed Oct 11, 2024
1 parent e8a1029 commit ea128d4
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,25 @@ jobs:
version: 'latest'

- name: WASM Pack
run: wasm-pack build --target web --no-default-features
working-directory: proj4rs
run: wasm-pack build --target web --release --out-dir=../js/pkg --no-default-features --features=proj4js-compat

- name: Install Node
uses: actions/setup-node@v4

- name: Npm update
working-directory: ol-proj4rs-demo-app
working-directory: js/ol-proj4rs-demo-app
run: npm --loglevel=verbose update

- name: Copy files from build
run: |
cp -R js/ ol-proj4rs-demo-app/assets/
- name: Npm build
working-directory: ol-proj4rs-demo-app
working-directory: js/ol-proj4rs-demo-app
run: |
npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ol-proj4rs-demo-app/dist
path: js/ol-proj4rs-demo-app/dist

- name: Setup Pages
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit ea128d4

Please sign in to comment.