Skip to content

Commit

Permalink
publish-vpm add zip sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonic853 committed Aug 16, 2024
1 parent 6353362 commit e38c806
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ jobs:
run: |
zip -r ${{ steps.read_version.outputs.name }}-${{ steps.read_version.outputs.current_version }}.zip . -x ".git*" ".github*" "Packages*"
- name: Read zip sha256
id: zip
if: steps.read_version.outputs.last_tag != steps.read_version.outputs.current_version
run: echo "hash=$(shasum -a 256 ${{ steps.read_version.outputs.name }}-${{ steps.read_version.outputs.current_version }}.zip | awk '{ print $1 }')" >> $GITHUB_OUTPUT

- name: Track Package Meta Files
if: steps.read_version.outputs.last_tag != steps.read_version.outputs.current_version
run: find "Packages/${{ steps.read_version.outputs.name }}" -name \*.meta >> metaList
Expand Down Expand Up @@ -110,4 +115,4 @@ jobs:
token: ${{ secrets.PAT }}
repository: Sonic853/vpm-repos
event-type: publish-vpm
client-payload: '{"repository": "${{ github.repository }}", "path": "${{ github.event.repository.name }}", "name": "${{ steps.read_version.outputs.name }}", "version": "${{ steps.read_version.outputs.current_version }}"}'
client-payload: '{"repository": "${{ github.repository }}", "path": "${{ github.event.repository.name }}", "name": "${{ steps.read_version.outputs.name }}", "version": "${{ steps.read_version.outputs.current_version }}", "hash": "${{ steps.zip.outputs.hash }}"}'

0 comments on commit e38c806

Please sign in to comment.