We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bf68f6 commit e48be3bCopy full SHA for e48be3b
.github/workflows/deploy-production.yml
@@ -4,15 +4,27 @@ on:
4
- cron: "20 18 * * *"
5
push:
6
branches: [ master ]
7
- workflow_dispatch:
8
jobs:
9
build:
10
runs-on: ubuntu-latest
11
steps:
12
- - uses: actions/checkout@v1
+ - uses: actions/checkout@v4
+ - uses: dorny/paths-filter@v2
13
+ id: filter
14
+ with:
15
+ filters: |
16
+ web:
17
+ - 'src/**'
18
+ - '.babelrc'
19
+ - 'astro.config.mjs'
20
+ - 'netlify.toml'
21
+ - 'package-lock.json'
22
+ - 'package.json'
23
+ # run only if 'web' files were changed
24
- name: Run deployment script
25
env:
26
GH_TOKEN: ${{ secrets.GH_TOKEN }}
27
+ if: steps.filter.outputs.web == 'true'
28
run: |
29
chmod +x ./src/scripts/deploy.sh
30
./src/scripts/deploy.sh production
.github/workflows/deploy-web-merge-test.yml
0 commit comments