Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
davi17g committed Aug 1, 2024
1 parent 4fdcaf4 commit ee9390f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,17 @@ jobs:
run: |
git config --global url."https://${PAT}:[email protected]/".insteadOf "https://github.com/"
make packages
- name: Find package files
id: finder
uses: actions/glob@v3
with:
path: '**/*.{rpm,deb,sha256}'
patterns: '**/*.{rpm,deb,sha256}'
- name: Print file names
run: |
for file in ${{ steps.finder.outputs.files }}; do
echo "File found: $file"
done
# make-packages:
# needs: create-release
Expand Down
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,15 @@ packages: buildx
--packager $$(echo $$packager) \
--target $(TARGET_DIR); \
done; \
done
done; \
$(MAKE) checksums

.PHONY: checksums
checksums:
@find . -type f \
\( -name '*.deb' -o -name '*.rpm' \) \
-exec sh -c 'sha256sum "$$1" | cut -d" " -f1 > "$$1.sha256"' _ {} \;

.PHONY: test
test:
$(GOTEST) -v ./...
Expand Down

0 comments on commit ee9390f

Please sign in to comment.