Skip to content

Commit

Permalink
Use action-deploy-to-import-map-deployer
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldenning committed Oct 14, 2024
1 parent d2b9581 commit 359e757
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 359e757

Please sign in to comment.