Skip to content

Commit 2aeba10

Browse files
Cleanup folder before submodule update
1 parent 478ee45 commit 2aeba10

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/publish-prod.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
name: publish-prod
44

55
# Controls when the workflow will run
6-
on:
7-
push:
8-
branches:
9-
- master
6+
on: workflow_dispatch
107

118
jobs:
129

@@ -20,6 +17,7 @@ jobs:
2017

2118
- name: Submodule update
2219
run: |
20+
rm -rf common/content/${{ env.PRODUCT }}
2321
git submodule update --init --recursive
2422
git submodule foreach git pull origin master
2523
@@ -30,7 +28,6 @@ jobs:
3028
3129
- name: Run and build Hugo
3230
run: |
33-
rm -rf common/content/${{ env.PRODUCT }}
3431
mkdir -p common/content/${{ env.PRODUCT }}
3532
cp -r java common/content/${{ env.PRODUCT }}
3633
cp -r net common/content/${{ env.PRODUCT }}

.github/workflows/publish-qa.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
name: publish-qa
44

55
# Controls when the workflow will run
6-
on: workflow_dispatch
7-
6+
on:
7+
push:
8+
89
jobs:
910

1011
build:
@@ -17,6 +18,7 @@ jobs:
1718

1819
- name: Submodule update
1920
run: |
21+
rm -rf common/content/${{ env.PRODUCT }}
2022
git submodule update --init --recursive
2123
git submodule foreach git pull origin master
2224
@@ -27,7 +29,6 @@ jobs:
2729
2830
- name: Run and build Hugo
2931
run: |
30-
rm -rf common/content/${{ env.PRODUCT }}
3132
mkdir -p common/content/${{ env.PRODUCT }}
3233
cp -r java common/content/${{ env.PRODUCT }}
3334
cp -r net common/content/${{ env.PRODUCT }}

0 commit comments

Comments
 (0)