Skip to content

Commit e8cd357

Browse files
committed
make sure web and staging web builds are different
1 parent 315b347 commit e8cd357

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/ExportGodot.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,22 @@ jobs:
112112
file_glob: true
113113
overwrite: true
114114

115-
- name: Deploy web build to GitHub Pages
116-
if: matrix.platform == 'web'
115+
- name: Deploy release web build to GitHub Pages
116+
if: (matrix.platform == 'web') && (github.ref_name == 'release')
117+
uses: JamesIves/github-pages-deploy-action@v4
118+
with:
119+
token: ${{ secrets.GITHUB_TOKEN }}
120+
branch: gh-pages
121+
folder: build/web
122+
target-folder: ''
123+
clean: false
124+
125+
- name: Deploy staging/other web build to GitHub Pages
126+
if: (matrix.platform == 'web') && (github.ref_name != 'release')
117127
uses: JamesIves/github-pages-deploy-action@v4
118128
with:
119129
token: ${{ secrets.GITHUB_TOKEN }}
120130
branch: gh-pages
121-
folder: build/web/${{ github.ref_name == 'release' && '' || github.ref_name }}
122-
target-folder: ${{ github.ref_name == 'release' && '' || github.ref_name }}
131+
folder: build/web/${{ github.ref_name }}
132+
target-folder: ${{ github.ref_name }}
123133
clean: false

0 commit comments

Comments
 (0)