Skip to content

Commit 9311b6f

Browse files
committed
Add test deploy production action
1 parent 5bad624 commit 9311b6f

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy production (Test)
2+
on:
3+
push:
4+
branches: [ web-merge ]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: dorny/paths-filter@v2
11+
id: filter
12+
with:
13+
filters: |
14+
web:
15+
- 'src/**'
16+
- '.babelrc'
17+
- 'astro.config.mjs'
18+
- 'netlify.toml'
19+
- 'package-lock.json'
20+
- 'package.json'
21+
# run only if 'web' files were changed
22+
- name: Run deployment script
23+
env:
24+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
25+
if: steps.filter.outputs.web == 'true'
26+
run: |
27+
chmod +x ./src/scripts/deploy.sh
28+
./src/scripts/deploy.sh production

0 commit comments

Comments
 (0)