diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 304766d11..02e8cbbf0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,35 +89,17 @@ jobs: deploy_app_shell: runs-on: ubuntu-latest - env: - ESM_NAME: "@openmrs/esm-app-shell" - needs: pre_release if: ${{ github.event_name == 'push' }} steps: - - name: Download Artifacts - uses: actions/download-artifact@v2 - - name: Compute Timestamp - run: echo "TIMESTAMP=$(date +'%Y-%m-%d')" >> $GITHUB_ENV - - name: Prepare Directory - shell: bash - run: | - mkdir -p dist/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }} - mkdir -p dist/${{ env.ESM_NAME }}/latest - cp -r packages/shell/esm-app-shell/dist/ dist/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}/ - cp -r packages/shell/esm-app-shell/dist/ dist/${{ env.ESM_NAME }}/latest/ - - name: Publish to Digital Ocean - uses: jakejarvis/s3-sync-action@master + - name: Trigger RefApp Build + uses: fjogeleit/http-request-action@master with: - args: --acl public-read --follow-symlinks --cache-control "max-age=31536000" - env: - AWS_S3_BUCKET: ${{ secrets.DIGITAL_OCEAN_SPACES_BUCKET }} - AWS_ACCESS_KEY_ID: ${{ secrets.DIGITAL_OCEAN_SPACES_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.DIGITAL_OCEAN_SPACES_ACCESS_KEY }} - AWS_S3_ENDPOINT: ${{ secrets.DIGITAL_OCEAN_SPACES_ENDPOINT }} - SOURCE_DIR: "dist" + url: https://ci.openmrs.org/rest/api/latest/queue/REFAPP-D3X + method: "POST" + customHeaders: '{ "Authorization": "Bearer ${{ secrets.BAMBOO_TOKEN }}" }' release: runs-on: ubuntu-latest