Create Release on Successful Builds #7
This file contains 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: Create Release on Successful Builds | ||
on: | ||
workflow_run: | ||
workflows: | ||
- Run Build Lint and test Next.js app | ||
- Run Build and test Tauri App | ||
types: | ||
- completed | ||
jobs: | ||
create-release: | ||
Check failure on line 12 in .github/workflows/release.yml GitHub Actions / Create Release on Successful BuildsInvalid workflow file
|
||
if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
runs-on: ubuntu-latest | ||
needs: [Run Build Lint and test Next.js app, Run Build and test Tauri App] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Download Next.js Build Artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: nextjs-build-success | ||
- name: Download Tauri Build Artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: tauri-build-success | ||
- name: Create GitHub Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
with: | ||
tag_name: ${{ github.sha }} | ||
release_name: "Release ${{ github.sha }}" | ||
body: "Automated release for commit ${{ github.sha }}." | ||
draft: false | ||
prerelease: false | ||
- name: Upload Tauri Binaries (for Windows, macOS, Linux) | ||
uses: actions/upload-release-asset@v1 | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./tauri-app/target/release/bundle/*.app | ||
asset_name: TauriApp-${{ github.sha }}.zip | ||
asset_content_type: application/zip |