FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.
C++ ai-agentsalgorithmic-tradingbloomberg-terminalcppfinancefinancial-marketsfintechgood-first-issueinvestmentinvestment-researchmachine-learningopensourcepythonqtquantitative-financestock-markettrading
build update
tilakpatel2214eee8e9aa87
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex c3bb8a479..e3be79317 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -5,7 +5,7 @@ on:branches: [ main ]pull_request:branches: [ main ]- workflow_dispatch: # Allows manual trigger+ workflow_dispatch:jobs:build:@@ -115,9 +115,8 @@ jobs:echo "version=1.0.0" >> $GITHUB_OUTPUTfi- - name: Update README with download links+ - name: Create download sectionrun: |- # Get the run ID and commit SHARUN_ID="${{ github.run_id }}"COMMIT_SHA="${{ github.sha }}"SHORT_SHA=${COMMIT_SHA:0:7}@@ -125,48 +124,37 @@ jobs:REPO_URL="https://github.com/${{ github.repository }}"CURRENT_DATE=$(date -u +"%Y-%m-%d %H:%M UTC")- # Create the download links section- cat > download_section.md << 'EOF'-## 📥 Download Latest Build--**Version:** `v$VERSION` | **Commit:** `$SHORT_SHA` | **Build:** [#$RUN_ID]($REPO_URL/actions/runs/$RUN_ID) | **Updated:** $CURRENT_DATE--| Platform | Architecture | Download |-|----------|-------------|----------|-| 🍎 **macOS** | Apple Silicon (ARM64) | []($REPO_URL/actions/runs/$RUN_ID/artifacts) |-| 🍎 **macOS** | Intel (x64) | []($REPO_URL/actions/runs/$RUN_ID/artifacts) |-| 🐧 **Linux** | x64 | []($REPO_URL/actions/runs/$RUN_ID/artifacts) |-| 🪟 **Windows** | x64 | []($REPO_URL/actions/runs/$RUN_ID/artifacts) |--> **Note:** Click on the download buttons above to access the artifacts page, then download the specific build for your platform.--### 📋 Installation Instructions--- **macOS**: Download the `.dmg` file, open it, and drag FinceptTerminal to Applications-- **Linux**: Download the `.AppImage` file, make it executable (`chmod +x`), and run-- **Windows**: Download the `.msi` file and run the installer------EOF-- # Replace variables in the template- sed -i "s/\$VERSION/$VERSION/g" download_section.md- sed -i "s/\$SHORT_SHA/$SHORT_SHA/g" download_section.md- sed -i "s/\$RUN_ID/$RUN_ID/g" download_section.md- sed -i "s|\$REPO_URL|$REPO_URL|g" download_section.md- sed -i "s/\$CURRENT_DATE/$CURRENT_DATE/g" download_section.md-- # Check if README exists+ echo "## 📥 Download Latest Build" > download_section.md+ echo "" >> download_section.md+ echo "**Version:** \`v${VERSION}\` | **Commit:** \`${SHORT_SHA}\` | **Build:** [#${RUN_ID}](${REPO_URL}/actions/runs/${RUN_ID}) | **Updated:** ${CURRENT_DATE}" >> download_section.md+ echo "" >> download_section.md+ echo "| Platform | Architecture | Download |" >> download_section.md+ echo "|----------|-------------|----------|" >> download_section.md+ echo "| 🍎 **macOS** | Apple Silicon (ARM64) | [](${REPO_URL}/actions/runs/${RUN_ID}/artifacts) |" >> download_section.md+ echo "| 🍎 **macOS** | Intel (x64) | [](${REPO_URL}/actions/runs/${RUN_ID}/artifacts) |" >> download_section.md+ echo "| 🐧 **Linux** | x64 | [](${REPO_URL}/actions/runs/${RUN_ID}/artifacts) |" >> download_section.md+ echo "| 🪟 **Windows** | x64 | [](${REPO_URL}/actions/runs/${RUN_ID}/artifacts) |" >> download_section.md+ echo "" >> download_section.md+ echo "> **Note:** Click on the download buttons above to access the artifacts page, then download the specific build for your platform." >> download_section.md+ echo "" >> download_section.md+ echo "### 📋 Installation Instructions" >> download_section.md+ echo "" >> download_section.md+ echo "- **macOS**: Download the \`.dmg\` file, open it, and drag FinceptTerminal to Applications" >> download_section.md+ echo "- **Linux**: Download the \`.AppImage\` file, make it executable (\`chmod +x\`), and run" >> download_section.md+ echo "- **Windows**: Download the \`.msi\` file and run the installer" >> download_section.md+ echo "" >> download_section.md+ echo "---" >> download_section.md++ - name: Update README+ run: |if [ ! -f "README.md" ]; thenecho "Creating new README.md"echo "# FinceptTerminal" > README.mdecho "" >> README.mdfi- # Check if README has the download section markersif grep -q "<!-- DOWNLOAD_SECTION_START -->" README.md && grep -q "<!-- DOWNLOAD_SECTION_END -->" README.md; thenecho "Updating existing download section"- # Create a temporary file with the new contentawk '/<!-- DOWNLOAD_SECTION_START -->/ {print $0@@ -181,9 +169,7 @@ EOFmv temp_readme.md README.mdelseecho "Adding new download section"- # Add markers and section after the first heading or at the beginningif grep -q "^# " README.md; then- # Insert after the first headingawk '/^# / && !inserted {print $0@@ -199,7 +185,6 @@ EOF' README.md > temp_readme.mdmv temp_readme.md README.mdelse- # Prepend to file{echo "<!-- DOWNLOAD_SECTION_START -->"cat download_section.md@@ -211,7 +196,6 @@ EOFfifi- # Clean uprm -f download_section.md- name: Commit and push changes@@ -219,14 +203,12 @@ EOFgit config --local user.email "[email protected]"git config --local user.name "GitHub Action Bot"- # Check if there are any changesif git diff --quiet README.md; thenecho "No changes to commit"elsegit add README.mdgit commit -m "🚀 Auto-update download links for build #${{ github.run_id }}"- # Retry push up to 3 times in case of conflictsfor i in {1..3}; doif git push; thenecho "Successfully pushed changes"