diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 90e023c..4a5fb8c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,18 +9,35 @@ on: jobs: build-deploy: runs-on: ubuntu-latest + + permissions: + contents: read + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: repository: LLK/scratch-gui ref: v3.6.18 - run: npm install - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: path: ./handpose2scratch - run: sh ./handpose2scratch/install.sh + - run: npm run build - - uses: peaceiris/actions-gh-pages@v3 + + - uses: actions/configure-pages@v4 + + - uses: actions/upload-pages-artifact@v3 with: - deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} - publish_dir: ./build + path: build + + - name: Deploy + id: deployment + uses: actions/deploy-pages@v4 diff --git a/install.sh b/install.sh index 9e7e2b6..58638ae 100644 --- a/install.sh +++ b/install.sh @@ -6,7 +6,6 @@ EXTENSION_NAME=Handpose2Scratch EXTENSION_ID=handpose2scratch cd node_modules/scratch-vm -npm install ml5@0.12.2 cd ../../ mkdir -p node_modules/scratch-vm/src/extensions/scratch3_${EXTENSION_ID}