Skip to content

Commit

Permalink
Update Build and Release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yodaluca23 authored Jun 21, 2024
1 parent 9c83c9c commit 906b3f8
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/Build and Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,19 @@ jobs:

- name: Download Orion .deb file from Chariz repo
run: |
orion_url=$(curl -s https://repo.chariz.com/Packages | jq -r '.[] | select(.package=="dev.theos.orion14").versions[0].depiction.url')
orion_version=$(curl -s "$orion_url" | grep -oP '(?<=<h1 class="text-h3">Orion ).*(?=</h1>)')
orion_download_url=$(curl -s "$orion_url" | grep -oP '(?<=<a class="button" href=").*(?=">Download</a>)')
curl -L "$orion_download_url" -o "Build Components/orion"
# Fetch the Packages file from Chariz repo
packages_data=$(curl -s https://repo.chariz.com/Packages)
# Find the entry for Orion package
orion_entry=$(echo "$packages_data" | awk '/Package: dev.theos.orion14/,/^$/')
# Extract necessary details from the Orion entry
orion_version=$(echo "$orion_entry" | grep -oP 'Version: \K.*')
orion_download_url=$(echo "$orion_entry" | grep -oP 'Filename: \K.*')
# Download Orion .deb file
curl -L "https://repo.chariz.com/$orion_download_url" -o "Build Components/orion"
# Set environment variables
echo "orion=Build Components/orion" >> $GITHUB_ENV
echo "ORIONVERSION=$orion_version" >> $GITHUB_ENV
- name: Upload Orion to VirusTotal
if: ${{ env.VIRUSTOTALKEY }}
Expand Down

0 comments on commit 906b3f8

Please sign in to comment.