From 47ed3316e40e57cf5140a7ff73b82c98da4e6a38 Mon Sep 17 00:00:00 2001 From: Richard Tasker Date: Wed, 7 Aug 2024 17:41:13 +0200 Subject: [PATCH] Switch to GH Actions (#13) Remove appveyor.yml and add GitHub Action yml. --- .github/workflows/dotnet.yml | 30 +++++++++++++++++++++++++++++ appveyor.yml | 37 ------------------------------------ 2 files changed, 30 insertions(+), 37 deletions(-) create mode 100644 .github/workflows/dotnet.yml delete mode 100644 appveyor.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..244df19 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,30 @@ +name: .Net Build + +on: + pull_request: + + push: + branches: + - master + tags: + - '*' + +env: + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + +jobs: + build: + name: Github Actions Build + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.* + - name: Build Reason + run: echo ${{github.ref}} and ${{github.event_name}} + - name: Build + run: dotnet build --configuration Release --nologo \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 918b5ce..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,37 +0,0 @@ -image: Ubuntu -version: '1.0.{build}' -configuration: Release -skip_branch_with_pr: true - -pull_requests: - do_not_increment_build_number: true - -nuget: - disable_publish_on_pr: true - -environment: - DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true - DOTNET_CLI_TELEMETRY_OPTOUT: true - -dotnet_csproj: - patch: true - file: '**\*.csproj' - version: '{version}' - package_version: '{version}' - assembly_version: '{version}' - file_version: '{version}' - informational_version: '{version}' - -install: - - git submodule update --init --recursive - -build: - project: ./src/Carter.SirenNegotiator.csproj - publish_nuget: true - -deploy: - provider: NuGet - on: - branch: master - api_key: - secure: sVEOMjXCoYQU0B6tbPn7p/tEMMWqHXp3t78YZqRNgEABqKoveA8xsD4M5gMcqfSF \ No newline at end of file