Skip to content

Commit 84086cf

Browse files
lukasmrtvyfnesveda
andauthored
chore: prepare for reusable workflows (#590)
Other part of PR apify/apify-docs-private#31 --------- Co-authored-by: František Nesveda <fnesveda@users.noreply.github.com> Co-authored-by: František Nesveda <frantisek@apify.com>
1 parent 77b2409 commit 84086cf

3 files changed

Lines changed: 298 additions & 0 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 'Deploy'
2+
3+
on:
4+
push:
5+
paths:
6+
- 'nginx.conf'
7+
8+
jobs:
9+
deploy:
10+
name: 'Deploy NGINX'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- run: gh workflow run deploy.yaml --repo apify/apify-docs-private
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

.github/workflows/invalidate.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: 'Invalidate'
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
invalidate:
8+
name: 'Invalidate CloudFront'
9+
runs-on: ubuntu-latest
10+
steps:
11+
- run: gh workflow run invalidate.yaml --repo apify/apify-docs-private
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)