Skip to content

Commit

Permalink
Merge pull request #6 from RevoluNix/develop
Browse files Browse the repository at this point in the history
fix: tar content
  • Loading branch information
Pikatsuto authored Jun 18, 2024
2 parents 3d048c7 + 1e7972f commit 4135b8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/auto_nigthly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ jobs:
- name: Generate tar.gz from src
id: generate_tar
run: |
cd ./src/
PKG_NAME="$(basename "${{ github.repository }}" | sed 's/pkg-//g')"
FILE_NAME="src-${PKG_NAME}.tar.gz"
echo "PKG_NAME=$PKG_NAME" >> $GITHUB_ENV
echo "FILE_NAME=$FILE_NAME" >> $GITHUB_ENV
tar -czvf ${FILE_NAME} *
tar -czvf ${FILE_NAME} src/
FILE_HASH=$(sha256sum ${FILE_NAME} | cut -d ' ' -f 1)
echo "FILE_HASH=$FILE_HASH" >> $GITHUB_ENV
Expand All @@ -49,7 +48,7 @@ jobs:
tag_name: ${{ env.TAG_NAME }}
prerelease: true
files: |
./src/${{ env.FILE_NAME }}
./${{ env.FILE_NAME }}
./package.nix
- name: Clone RevoluNixPKGS
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/auto_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ jobs:
- name: Generate tar.gz from src
id: generate_tar
run: |
cd ./src/
PKG_NAME="$(basename "${{ github.repository }}" | sed 's/pkg-//g')"
FILE_NAME="src-${PKG_NAME}.tar.gz"
echo "PKG_NAME=$PKG_NAME" >> $GITHUB_ENV
echo "FILE_NAME=$FILE_NAME" >> $GITHUB_ENV
tar -czvf ${FILE_NAME} *
tar -czvf ${FILE_NAME} src/
FILE_HASH=$(sha256sum ${FILE_NAME} | cut -d ' ' -f 1)
echo "FILE_HASH=$FILE_HASH" >> $GITHUB_ENV
Expand All @@ -49,7 +48,7 @@ jobs:
tag_name: ${{ env.TAG_NAME }}
prerelease: false
files: |
./src/${{ env.FILE_NAME }}
./${{ env.FILE_NAME }}
./package.nix
- name: Clone RevoluNixPKGS
Expand Down

0 comments on commit 4135b8d

Please sign in to comment.