diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 070a62e..59f4437 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -75,7 +75,7 @@ jobs: - name: Create GitHub release for main branch if: github.ref == 'refs/heads/main' - id: create_release + id: create_release_beta uses: softprops/action-gh-release@v1 with: tag_name: build/${{ env.VERSION }} @@ -88,7 +88,7 @@ jobs: - name: Create GitHub release for stable branch if: github.ref == 'refs/heads/stable' - id: create_release + id: create_release_stable uses: softprops/action-gh-release@v1 with: tag_name: build/${{ env.VERSION }} @@ -102,7 +102,7 @@ jobs: - name: Upload Release Assets uses: actions/upload-release-asset@v1 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} + upload_url: ${{ steps.create_release_beta.outputs.upload_url || steps.create_release_stable.outputs.upload_url }} asset_path: | Mirivoice.Desktop/bin/win-x86/MiriVoice-win-x86.zip Mirivoice.Desktop/bin/win-x64/MiriVoice-win-x64.zip diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 284cb88..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,71 +0,0 @@ -version: 1.0.0.{build} -environment: - access_token: - secure: EZGpxMjy4Z14QdM0UqgRTRn+GRbehi7bp6TtZVjH04PqNqMljX9d1QU29YDHOhld -image: - - macOS-Sonoma - - Visual Studio 2022 - - Ubuntu2204 -branches: - only: - - stable - - main -skip_commits: - files: - - .github/* - message: /\[nobuild\]/ -skip_tags: true -configuration: Release -dotnet_csproj: - patch: false - file: Mirivoice.Desktop\Mirivoice.Desktop.csproj - version: '{version}' - assembly_version: '{version}' - file_version: '{version}' - informational_version: '{version}' -before_build: - - ps: git config --global credential.helper store - - ps: Set-Content -Path "$HOME\.git-credentials" -Value "https://$($env:access_token):x-oauth-basic@github.com`n" -NoNewline - - ps: git config --global user.email "appveyor@appveyor.com" - - ps: git config --global user.name "appveyor" - - cmd: nuget restore -after_test: - - ps: if ($isWindows) { python Mirivoice.Desktop/appveyor.py 2>&1 } else { python3 Mirivoice.Desktop/appveyor.py 2>&1 } -artifacts: - - path: Mirivoice.Desktop\bin\win-x86 - name: MiriVoice-win-x86 - type: zip - - path: Mirivoice.Desktop\bin\win-x64 - name: MiriVoice-win-x64 - type: zip - - path: Mirivoice.Desktop/osxbuild/MiriVoice-osx-x64.zip - - path: MiriVoice-linux-x64.tar.gz - - path: appcast.win-x86.xml - - path: appcast.win-x64.xml - - path: appcast.linux-x64.xml - - path: appcast.osx-x64.xml -deploy: - - provider: GitHub - tag: build/$(APPVEYOR_BUILD_VERSION) - release: $(APPVEYOR_BUILD_VERSION) Beta - description: $(APPVEYOR_BUILD_VERSION) Beta $(APPVEYOR_REPO_COMMIT_TIMESTAMP) - auth_token: - secure: EZGpxMjy4Z14QdM0UqgRTRn+GRbehi7bp6TtZVjH04PqNqMljX9d1QU29YDHOhld - draft: false - prerelease: true - force_update: true - on: - branch: main - APPVEYOR_REPO_TAG: false - - provider: GitHub - tag: build/$(APPVEYOR_BUILD_VERSION) - release: $(APPVEYOR_BUILD_VERSION) - description: $(APPVEYOR_BUILD_VERSION) $(APPVEYOR_REPO_COMMIT_TIMESTAMP) - auth_token: - secure: EZGpxMjy4Z14QdM0UqgRTRn+GRbehi7bp6TtZVjH04PqNqMljX9d1QU29YDHOhld - draft: false - prerelease: false - force_update: true - on: - branch: stable - APPVEYOR_REPO_TAG: false \ No newline at end of file