Skip to content

Commit

Permalink
Migrate to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
xoofx committed Mar 9, 2020
1 parent 755d54b commit 194c573
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: [xoofx] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: [xoofx]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: ci

on:
push:
paths-ignore:
- 'doc/**'
- 'img/**'
- 'changelog.md'
- 'readme.md'
pull_request:

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.0.100

- name: Build & test (Release)
run: dotnet test src -c Release
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: deploy

env:
PROJECT_NAME: UnityNuGet

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+"
pull_request:

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.0.100

- name: Build & test (Release)
run: dotnet test src -c Release

- name: Publish (Release)
run: dotnet publish src -c Release -o build/${{env.PROJECT_NAME}}

- name: 'Azure webapp deploy action using publish profile credentials'
uses: azure/webapps-deploy@v2
with:
app-name: unitynuget-registry
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
package: build/${{env.PROJECT_NAME}}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
mono_crash.*

# Build results
build/
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
Expand Down
40 changes: 0 additions & 40 deletions appveyor.yml

This file was deleted.

2 changes: 1 addition & 1 deletion license.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2019, Alexandre Mutel
Copyright (c) 2019-2020, Alexandre Mutel
All rights reserved.

Redistribution and use in source and binary forms, with or without modification
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# UnityNuGet [![Build status](https://ci.appveyor.com/api/projects/status/xecinpa92napbd2e?svg=true)](https://ci.appveyor.com/project/xoofx/unitynuget)
# UnityNuGet [![Build Status](https://github.com/xoofx/UnityNuGet/workflows/ci/badge.svg?branch=master)](https://github.com/xoofx/UnityNuGet/actions)

<img align="right" width="160px" height="160px" src="img/unitynuget.png">

Expand Down
30 changes: 20 additions & 10 deletions src/UnityNuGet.sln
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnityNuGet.Server", "UnityNuGet.Server\UnityNuGet.Server.csproj", "{C84FC40C-94EE-4314-BB48-CD1A98849D82}"
# Visual Studio Version 16
VisualStudioVersion = 16.0.29728.190
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnityNuGet.Server", "UnityNuGet.Server\UnityNuGet.Server.csproj", "{C84FC40C-94EE-4314-BB48-CD1A98849D82}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnityNuGet", "UnityNuGet\UnityNuGet.csproj", "{3E72FFD2-4CB6-4B44-9A49-29699722D93E}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnityNuGet", "UnityNuGet\UnityNuGet.csproj", "{3E72FFD2-4CB6-4B44-9A49-29699722D93E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnityNuGet.Tests", "UnityNuGet.Tests\UnityNuGet.Tests.csproj", "{EBC6FFF4-FD7C-4E03-B907-F12908C1D900}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnityNuGet.Tests", "UnityNuGet.Tests\UnityNuGet.Tests.csproj", "{EBC6FFF4-FD7C-4E03-B907-F12908C1D900}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{D2A040A5-DB8C-43BE-A801-107503057C2B}"
ProjectSection(SolutionItems) = preProject
..\appveyor.yml = ..\appveyor.yml
..\changelog.md = ..\changelog.md
..\license.txt = ..\license.txt
..\readme.md = ..\readme.md
..\registry.json = ..\registry.json
EndProjectSection
ProjectSection(SolutionItems) = preProject
..\changelog.md = ..\changelog.md
..\.github\workflows\ci.yml = ..\.github\workflows\ci.yml
..\.github\workflows\deploy.yml = ..\.github\workflows\deploy.yml
..\license.txt = ..\license.txt
..\readme.md = ..\readme.md
..\registry.json = ..\registry.json
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -34,4 +38,10 @@ Global
{EBC6FFF4-FD7C-4E03-B907-F12908C1D900}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EBC6FFF4-FD7C-4E03-B907-F12908C1D900}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E40E3A93-4338-423A-B9D0-474BBA88F2A5}
EndGlobalSection
EndGlobal

0 comments on commit 194c573

Please sign in to comment.