Skip to content

Commit ccb4b1b

Browse files
authored
Merge pull request #15 from dyfer/gha-release-2
Put files in the archive inside a subfolder
2 parents 96be631 + 7f8ae89 commit ccb4b1b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/release.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ jobs:
77
runs-on: ubuntu-latest
88
env:
99
ARCHIVE_NAME: "matrices.zip"
10+
ARCHIVE_FOLDER: "matrices"
1011
steps:
1112
- name: checkout
1213
uses: actions/checkout@v2
1314
- name: make archive
14-
run: zip -r $ARCHIVE_NAME *
15+
run: |
16+
# we want to create an archive without hidden files
17+
# inside a specific parent directory
18+
rsync -av --exclude=".*" . ../$ARCHIVE_FOLDER
19+
cd ..
20+
zip -r $GITHUB_WORKSPACE/$ARCHIVE_NAME $ARCHIVE_FOLDER
1521
- name: upload to the release
1622
uses: softprops/action-gh-release@v1
1723
with:

0 commit comments

Comments
 (0)