Skip to content

Commit d71229e

Browse files
authored
chore: deploy nginx workflow (#2090)
New workflow for apify-docs nginx deployment to be tested while also keeping the current solution working <!-- CURSOR_SUMMARY --> > [!NOTE] > Adds a GitHub Actions workflow to trigger Nginx config deployment in apify/apify-docs-private on nginx.conf changes or manual dispatch. > > - **CI/CD**: > - **New workflow** `/.github/workflows/deploy-nginx.yml`: > - Triggers on `push` to `master` when `nginx.conf` changes and via `workflow_dispatch`. > - Executes `gh workflow run deploy-nginx.yaml` against `apify/apify-docs-private` with `deployment=apify-docs`. > - Uses `GITHUB_TOKEN` from `secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 3ed86df. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 39ceec0 commit d71229e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/deploy-nginx.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Triggers deployment of the Nginx reverse proxy configuration for docs.apify.com
2+
# when the configuration file is updated in this repository.
3+
name: Deploy Nginx Configuration
4+
5+
on:
6+
# push:
7+
# branches:
8+
# - master
9+
# paths:
10+
# - 'nginx.conf'
11+
workflow_dispatch:
12+
13+
jobs:
14+
trigger-deployment:
15+
name: Trigger Nginx deployment
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Trigger deployment workflow in apify-docs-private
19+
run: |
20+
gh workflow run deploy-nginx.yaml \
21+
--repo apify/apify-docs-private \
22+
--field deployment=apify-docs
23+
echo "✅ Deployment workflow triggered successfully"
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)