Skip to content

Create Release on Successful Builds #7

Create Release on Successful Builds

Create Release on Successful Builds #7

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Create Release on Successful Builds

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 12, Col: 3): The workflow must contain at least one job with no dependencies.
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