updated carg deps, bump to 1.5.0 #9
Workflow file for this run
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: Stream Deck Plugin Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build-windows: | |
| name: Build Stream Deck Plugin | |
| runs-on: windows-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Rust Cache | |
| uses: Swatinem/rust-cache@v2 | |
| # 1. Binary im Release-Modus bauen | |
| - name: Build Binary | |
| run: cargo build --release | |
| # 2. Korrekte Ordnerstruktur erstellen | |
| - name: Prepare Plugin Content | |
| shell: pwsh | |
| run: | | |
| # Der Ordner MUSS genau so heißen wie die Plugin-ID | |
| $pluginName = "de.thatzok.thebus.sdPlugin" | |
| $distPath = "dist/$pluginName" | |
| # Ordnerstruktur anlegen | |
| New-Item -ItemType Directory -Path $distPath -Force | |
| # Das Binary in den .sdPlugin Ordner kopieren | |
| Copy-Item "target/release/thebus-streamdeck-plugin.exe" "$distPath/" | |
| # Assets (inkl. manifest.json) in den .sdPlugin Ordner kopieren | |
| if (Test-Path "assets") { | |
| Copy-Item -Path "assets/*" -Destination "$distPath/" -Recurse -Force | |
| } | |
| # 3. Das .streamDeckPlugin Paket erstellen | |
| # WICHTIG: Wir packen den ORDNER dist/de.thatzok.thebus.sdPlugin, nicht den Inhalt | |
| - name: Create Stream Deck Plugin Package | |
| shell: pwsh | |
| run: | | |
| # Wir zippen den gesamten Unterordner aus dist | |
| Compress-Archive -Path "dist/de.thatzok.thebus.sdPlugin" -DestinationPath "de.thatzok.thebus.sdPlugin.streamDeckPlugin" | |
| # 4. Upload zum GitHub Release | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: "de.thatzok.thebus.sdPlugin.streamDeckPlugin" | |
| generate_release_notes: true | |