add x86 check to TriProt signature #869
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: DB Release | |
| on: | |
| push: | |
| branches: ["master"] | |
| workflow_dispatch: | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Clone Detect-It-Easy | |
| run: | | |
| git clone https://github.com/horsicq/Detect-It-Easy DIE | |
| - name: Create db.zip (db + db_extra) | |
| if: ${{ hashFiles('DIE/db/info.ini') != '' }} | |
| run: | | |
| cd DIE | |
| zip -r ../db.zip db | |
| if [ -d db_extra ]; then | |
| zip -r ../db.zip db_extra | |
| fi | |
| cd .. | |
| - name: Read db/info.ini | |
| if: ${{ hashFiles('DIE/db/info.ini') != '' }} | |
| id: db_info | |
| run: | | |
| DB_INFO=$(cat DIE/db/info.ini) | |
| echo "DB_INFO<<EOF" >> $GITHUB_OUTPUT | |
| echo "$DB_INFO" >> $GITHUB_OUTPUT | |
| echo "EOF" >> $GITHUB_OUTPUT | |
| - name: Update db release | |
| if: ${{ hashFiles('DIE/db/info.ini') != '' }} | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| files: db.zip | |
| name: "db" | |
| tag_name: db | |
| body: ${{ steps.db_info.outputs.DB_INFO }} | |
| draft: false | |
| prerelease: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |