update dependencies & bump version #7
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: Bundle Release | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build -c Release --no-restore | |
| - name: Prepare Thunderstore package | |
| run: | | |
| mkdir -p thunderstore/BepInEx/plugins/BetterMediaControls | |
| cp bin/Release/netstandard2.1/BetterMediaControls.dll \ | |
| thunderstore/BepInEx/plugins/BetterMediaControls/ | |
| mkdir -p thunderstore/BepInEx/plugins/BetterMediaControls/music | |
| mkdir -p thunderstore/BepInEx/plugins/BetterMediaControls/icons | |
| cp icons/*.png thunderstore/BepInEx/plugins/BetterMediaControls/icons/ | |
| cp thunderstore/playlist.json thunderstore/BepInEx/plugins/BetterMediaControls/music/ | |
| cp README.md thunderstore/ | |
| - name: Create Thunderstore package | |
| run: | | |
| cd thunderstore | |
| zip -r ../CutiePatooties-BetterMediaControls-${{ github.ref_name }}.zip ./* | |
| - name: Create Github Draft Release | |
| id: create_release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| draft: true | |
| tag_name: ${{ github.ref_name }} | |
| name: ${{ github.ref_name }} | |
| body: "Release ${{ github.ref_name }}" | |
| files: CutiePatooties-BetterMediaControls-${{ github.ref_name }}.zip | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |