Skip to content

Commit dfb71ee

Browse files
committed
workflow adjusted
1 parent 976caf8 commit dfb71ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
jobs:
1111
create_release:
12+
if: github.ref == 'refs/heads/master' # Ensures the job runs only on master branch
1213
runs-on: ubuntu-latest
1314

1415
steps:
@@ -38,7 +39,7 @@ jobs:
3839
- name: Create zip file
3940
run: |
4041
REPO_NAME=$(basename `git rev-parse --show-toplevel`)
41-
zip -r ${REPO_NAME}.zip . -x '*.git*' -x '*.github*'
42+
zip -r ${REPO_NAME}.zip . -x '*.git*' -x '*.github*' -x '*.distignore*'
4243
echo "repo_name=${REPO_NAME}" >> $GITHUB_ENV
4344
4445
- name: Create Release

0 commit comments

Comments
 (0)