Skip to content

Commit

Permalink
ci: fix hash
Browse files Browse the repository at this point in the history
  • Loading branch information
SiongSng committed Jun 29, 2022
1 parent 880c371 commit 433aeda
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
24 changes: 1 addition & 23 deletions .github/workflows/build_pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,11 @@ jobs:
with:
files: translated/zh_tw/source/zh_tw/${{ matrix.gameVersion }} meta/${{ matrix.gameVersion }} LICENSE
dest: ${{ env.file_path }}.zip
- name: Generate hash for the zip file (MD5)
uses: MCJack123/ghaction-generate-release-hashes@v1
with:
hash-type: md5
file-name: ${{ env.file_path }}.md5
- name: Generate hash for the zip file (SHA1)
uses: MCJack123/ghaction-generate-release-hashes@v1
with:
hash-type: sha1
file-name: ${{ env.file_path }}.sha1
- name: Generate hash for the zip file (SHA256)
uses: MCJack123/ghaction-generate-release-hashes@v1
with:
hash-type: sha256
file-name: ${{ env.file_path }}.sha256
- name: Upload file
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.gameVersion }}
path: |
${{ env.file_path }}.zip
${{ env.file_path }}.md5
${{ env.file_path }}.sha1
${{ env.file_path }}.sha256
path: ${{ env.file_path }}.zip
retention-days: 1

release:
Expand All @@ -70,9 +51,6 @@ jobs:
tag_name: 1.0.${{ github.run_number }}
files: |
*/*.zip
*/*.md5
*/*.sha1
*/*.sha256
- name: Merge Pull Request
if: ${{ github.event_name == 'pull_request' }}
uses: juliangruber/merge-pull-request-action@v1
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release_pack_hash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release pack hash

on:
release:
types: [published]

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Generate hash for the zip file (MD5)
uses: MCJack123/ghaction-generate-release-hashes@v1
with:
hash-type: md5
file-name: hash.md5
- name: Generate hash for the zip file (SHA1)
uses: MCJack123/ghaction-generate-release-hashes@v1
with:
hash-type: sha1
file-name: hash.sha1
- name: Generate hash for the zip file (SHA256)
uses: MCJack123/ghaction-generate-release-hashes@v1
with:
hash-type: sha256
file-name: hash.sha256

0 comments on commit 433aeda

Please sign in to comment.