diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fecc0b66d..71c104d8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,9 +1,11 @@ -name: Build and Push Docker Image +name: Build Docker Image and Trigger Docs/Website on: push: tags: - "[0-9]+.[0-9]+.[0-9]+*" + release: + types: [published] permissions: read-all @@ -101,3 +103,38 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} target: full-image + + trigger-docs-and-web: + needs: build + runs-on: ubuntu-latest + if: github.event_name == 'release' + steps: + - name: Trigger docs build + uses: actions/github-script@v7 + with: + script: | + const response = await github.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', { + owner: 'romapp', + repo: 'docs', + workflow_id: 'deploy.yml', + ref: 'main', + inputs: { + version: '${{ github.event.release.tag_name }}' + } + }); + console.log(response); + + - name: Trigger website build + uses: actions/github-script@v7 + with: + script: | + const response = await github.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', { + owner: 'romapp', + repo: 'marketing-site', + workflow_id: 'deploy.yml', + ref: 'main', + inputs: { + version: '${{ github.event.release.tag_name }}' + } + }); + console.log(response); diff --git a/.vscode/settings.json b/.vscode/settings.json index 182b9ef27..4c2d55129 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,5 +2,6 @@ "python.testing.cwd": "${workspaceFolder}/backend", "python.testing.pytestArgs": ["."], "python.testing.unittestEnabled": false, - "python.testing.pytestEnabled": true + "python.testing.pytestEnabled": true, + "postman.settings.dotenv-detection-notification-visibility": false }