From 359e7571bfbf38a52874e32184e5ba8ffdf63a4d Mon Sep 17 00:00:00 2001 From: Joel Denning Date: Mon, 14 Oct 2024 17:31:03 -0600 Subject: [PATCH] Use action-deploy-to-import-map-deployer --- .github/workflows/build_and_deploy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index df91b11..a7f3a7d 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -68,4 +68,10 @@ jobs: destination: react.microfrontends.app/${{ github.event.repository.name }}/${{ github.run_id }} - name: Update Import Map - run: curl -u ${{ secrets.DEPLOYER_USERNAME }}:${{ secrets.DEPLOYER_PASSWORD }} -d '{ "service":"@react-mf/${{ github.event.repository.name }}","url":"https://react.microfrontends.app/${{ github.event.repository.name }}/${{ github.run_id }}/react-mf-${{ github.event.repository.name }}.js" }' -X PATCH ${{ secrets.DEPLOYER_HOST }}/services\?env=react -H "Accept:application/json" -H "Content-Type:application/json" --fail --insecure -i + uses: single-spa/action-deploy-to-import-map-deployer@v1 + with: + host: ${{ secrets.DEPLOYER_HOST }} + username: ${{ secrets.DEPLOYER_USERNAME }} + password: ${{ secrets.DEPLOYER_PASSWORD }} + service-name: "@react-mf/${{ github.event.repository.name }}" + service-url: "https://react.microfrontends.app/${{ github.event.repository.name }}/${{ github.run_id }}/react-mf-${{ github.event.repository.name }}.js"