Skip to content

Commit c8a1ce3

Browse files
authored
Merge pull request #7 from DigiNode-Tools/github-workflow-builds
Update build file to place files in a folder inside the .tar.gz
2 parents 7326366 + 3c51b8e commit c8a1ce3

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,24 @@ jobs:
4242
VERSION_NUMBER=${TAG_NAME#v}
4343
echo "DGNSM_VER_LOCAL=\"$VERSION_NUMBER\"" > .version
4444
45+
- name: Create Directory and Move Files
46+
run: |
47+
TAG_NAME=${GITHUB_REF##*/}
48+
DIRECTORY=dgnsm-${TAG_NAME}
49+
mkdir $DIRECTORY
50+
mv dgnsm .version dgnsm.config.template dgnsm.config.template2 $DIRECTORY/
51+
4552
- name: Package Binary and Config Files
4653
run: |
4754
TAG_NAME=${GITHUB_REF##*/}
48-
TAR_NAME=DGNSM-${TAG_NAME}-${{ matrix.name_suffix }}.tar.gz
49-
tar -czvf $TAR_NAME dgnsm .version dgnsm.config.template dgnsm.config.template2
55+
TAR_NAME=dgnsm-${TAG_NAME}-${{ matrix.name_suffix }}.tar.gz
56+
tar -czvf $TAR_NAME dgnsm-${TAG_NAME}
5057
5158
- name: Upload Release Asset
5259
uses: svenstaro/upload-release-action@v2
5360
with:
5461
repo_token: ${{ secrets.GITHUB_TOKEN }}
55-
file: DGNSM-*.tar.gz
62+
file: dgnsm-*.tar.gz
5663
tag: ${{ github.ref }}
5764
overwrite: true
5865
file_glob: true

0 commit comments

Comments
 (0)