Skip to content

Commit

Permalink
Create folder for files
Browse files Browse the repository at this point in the history
Do not put the files directly in the archive but create a folder that
contains the files

Signed-off-by: Nils Bosbach <n.bosbach@gmx.de>
  • Loading branch information
nbosb committed Nov 30, 2022
1 parent 8770744 commit b1a8739
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ jobs:
uses: actions/checkout@v3
- name: Create configure script
run: ./config/bootstrap
- name: Create output folder
run: mkdir output
- name: Create output folder and copy files
run: |
mkdir ${release_name}
rsync -av --progress ./ ${release_name} --exclude .git
mkdir output
- name: Create zip
run: zip -r output/${release_name}.zip . -x '*.git*' -x '*output*'
run: zip -r output/${release_name}.zip ${release_name}
- name: Create tar
working-directory: ./output
run: tar -czf ${release_name}.tar.gz --exclude=output --exclude=.git ../*
run: tar -cvzf output/${release_name}.tar.gz ${release_name}
- uses: "marvinpinto/action-automatic-releases@v1.2.1"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit b1a8739

Please sign in to comment.