Skip to content

Commit b90e010

Browse files
committed
Hopefully it will not deploy branch changes on the main site
1 parent cb8467e commit b90e010

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/build_and_deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
uses: actions/jekyll-build-pages@v1
3939
with:
4040
source: ./
41-
destination: ./_site
41+
destination: ${{ github.ref_name == 'master' && './_site' || format('./_site/deployments/{0}', github.ref_name) }}
4242

4343
- name: Upload artifact
4444
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)