Skip to content

Commit

Permalink
Release: Ensure source archives get the freeciv21 directory
Browse files Browse the repository at this point in the history
  • Loading branch information
jwrober authored and lmoureaux committed May 3, 2024
1 parent 064cac7 commit 42237ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ jobs:
run: mkdir -p -v $PWD/build
- name: Create tar.gz
run: |
tar --exclude='build' --exclude='data/graphics' -cvzf Freeciv21-${{github.ref_name}}.tar.gz *
tar --exclude='build' --exclude='data/graphics' -cvzf Freeciv21-${{github.ref_name}}.tar.gz ../freeciv21/*
sha256sum --binary Freeciv21-${{github.ref_name}}.tar.gz > Freeciv21-${{github.ref_name}}.tar.gz.sha256
- name: Create zip
run: |
zip -r Freeciv21-${{github.ref_name}}.zip * -x \/build/* \*.gz \*.sha256 \/data/graphics/*
cd ..
zip -r freeciv21/Freeciv21-${{github.ref_name}}.zip freeciv21/* -x \*/build/* \*.gz \*.sha256 \*/data/graphics/* \*/.*
cd freeciv21
sha256sum --binary Freeciv21-${{github.ref_name}}.zip > Freeciv21-${{github.ref_name}}.zip.sha256
- name: Upload package
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 42237ce

Please sign in to comment.