diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 17e29bc..2ecd9d8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,55 +11,11 @@ jobs: uses: actions/checkout@v3 - name: Build Plugins - run: dotnet publish -c Release src/Artemis.Plugins.diogotr7.sln + run: dotnet publish -c Release src - #msbuild is dumb so we have to upload one at a time :) - #https://github.com/dotnet/sdk/issues/7238 + - name: Install Plugin Uploader + run: dotnet tool install ArtemisRGB.Tools.PluginUploader --global - - name: Upload Discord - uses: actions/upload-artifact@v3 - with: - name: Discord - path: src/Artemis.Plugins.Modules.Discord/bin/x64/Release/net8.0/publish - - - name: Upload OBS - uses: actions/upload-artifact@v3 - with: - name: OBS - path: src/Artemis.Plugins.Modules.OBS/bin/x64/Release/net8.0/publish - - - name: Upload Spotify - uses: actions/upload-artifact@v3 - with: - name: Spotify - path: src/Artemis.Plugins.Modules.Spotify/bin/x64/Release/net8.0/publish - - - name: Upload Chroma - uses: actions/upload-artifact@v3 - with: - name: Chroma - path: src/Artemis.Plugins.LayerBrushes.Chroma/bin/x64/Release/net8.0-windows/publish - - - name: Upload Gif - uses: actions/upload-artifact@v3 - with: - name: Gif - path: src/Artemis.Plugins.LayerBrushes.Gif/bin/x64/Release/net8.0/publish - - - name: Upload VoiceMeeter - uses: actions/upload-artifact@v3 - with: - name: VoiceMeeter - path: src/Artemis.Plugins.Modules.VoiceMeeter/bin/x64/Release/net8.0/publish - - - name: Upload Ping - uses: actions/upload-artifact@v3 - with: - name: Ping - path: src/Artemis.Plugins.Nodes.Ping/bin/x64/Release/net8.0/publish - - - name: Upload Keyboard Layout - uses: actions/upload-artifact@v3 - with: - name: Keyboard Layout - path: src/Artemis.Plugins.Modules.KeyboardLayout/bin/x64/Release/net8.0/publish + - name: Upload + if: github.ref == 'refs/heads/master' + run: artemis-plugin-uploader upload-all --pat ${{ secrets.WORKSHOP_PAT }} --folder src \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 7812f07..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Deploy to Workshop - -on: - push: - branches: - - master - -jobs: - build: - runs-on: windows-latest - - steps: - - name: Clone Plugins - uses: actions/checkout@v3 - - - name: Build Plugins - run: dotnet publish -c Release src/Artemis.Plugins.diogotr7.sln - - - name: Install Plugin Uploader - run: dotnet tool install ArtemisRGB.Tools.PluginUploader --global - - - name: Upload - run: artemis-plugin-uploader upload-all --pat ${{ secrets.WORKSHOP_PAT }} --path . \ No newline at end of file diff --git a/src/Artemis.Plugins.diogotr7.sln b/src/Artemis.Plugins.diogotr7.sln index b02a108..6c2de78 100644 --- a/src/Artemis.Plugins.diogotr7.sln +++ b/src/Artemis.Plugins.diogotr7.sln @@ -22,7 +22,6 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GithubActions", "GithubActions", "{87BB1199-B6B2-4FF5-8891-F8E4C951ABCA}" ProjectSection(SolutionItems) = preProject ..\.github\workflows\build.yml = ..\.github\workflows\build.yml - ..\.github\workflows\deploy.yml = ..\.github\workflows\deploy.yml EndProjectSection EndProject Global