This repository was archived by the owner on Feb 11, 2026. It is now read-only.
Build and Release #6
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: Build and Release | ||
| on: | ||
| workflow_dispatch: | ||
| env: | ||
| REPO_OWNER: yu13140 | ||
| REPO_NAME: EHoRY | ||
| RELEASE_NAME: "EHoRY" | ||
| jobs: | ||
| build: | ||
| name: "Build EHoRY" | ||
| uses: ./.github/workflows/build.yml | ||
|
Check failure on line 14 in .github/workflows/build-release.yml
|
||
| secrets: inherit | ||
| release: | ||
| name: "Release EHoRY" | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| - name: Download Artifacts | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| path: ./artifacts | ||
| - name: Setup Git | ||
| run: | | ||
| git config --local user.email "action@github.com" | ||
| git config --local user.name "GitHub Action" | ||
| - name: Generate New Tag | ||
| id: tag_generation | ||
| run: | | ||
| NEW_TAG="v5.1" | ||
| echo "New tag: $NEW_TAG" | ||
| echo "new_tag=$NEW_TAG" >> $GITHUB_OUTPUT | ||
| echo "NEW_TAG=$NEW_TAG" >> $GITHUB_ENV | ||
| - name: Create Git Tag | ||
| run: | | ||
| git tag ${{ env.NEW_TAG }} | ||
| git push origin ${{ env.NEW_TAG }} | ||
| - name: Create GitHub Release | ||
| uses: softprops/action-gh-release@v1 | ||
| with: | ||
| tag_name: ${{ env.NEW_TAG }} | ||
| name: ${{ env.RELEASE_NAME }} ${{ env.NEW_TAG }} | ||
| body: | | ||
| Automated release for EHoRY | ||
| - Build Date: $(date -u +"%Y-%m-%dT%H:%M:%SZ") | ||
| - Commit: ${{ github.sha }} | ||
| - Built for: aarch64-linux-android | ||
| [Update Log](https://github.com/TheGeniusClub/EHoRY/blob/master/update_log.md) | ||
| files: | | ||
| artifacts/**/* | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Display Release Info | ||
| run: | | ||
| echo "🎉 Release ${{ env.NEW_TAG }} created successfully!" | ||
| echo "📦 Artifacts uploaded:" | ||
| find ./artifacts -type f -exec echo " - {}" \; | ||