Skip to content

Commit d75fad2

Browse files
committed
Updated project to GitHub actions
1 parent e0e818d commit d75fad2

File tree

11 files changed

+259
-343
lines changed

11 files changed

+259
-343
lines changed

.github/workflows/build.yml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: .NET Core
2+
on:
3+
push:
4+
pull_request:
5+
release:
6+
types:
7+
- published
8+
env:
9+
# Stop wasting time caching packages
10+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
11+
# Disable sending usage data to Microsoft
12+
DOTNET_CLI_TELEMETRY_OPTOUT: true
13+
# Project name to pack and publish
14+
PROJECT_NAME: Giraffe.TokenRouter
15+
# GitHub Packages Feed settings
16+
GITHUB_FEED: https://nuget.pkg.github.com/giraffe-fsharp/
17+
GITHUB_USER: dustinmoris
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
# Official NuGet Feed settings
20+
NUGET_FEED: https://api.nuget.org/v3/index.json
21+
NUGET_KEY: ${{ secrets.NUGET_KEY }}
22+
jobs:
23+
build:
24+
runs-on: ${{ matrix.os }}
25+
strategy:
26+
matrix:
27+
os: [ ubuntu-latest, windows-latest, macos-latest ]
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v2
31+
- name: Setup .NET Core
32+
uses: actions/setup-dotnet@v1
33+
with:
34+
dotnet-version: 5.0.100
35+
- name: Restore
36+
run: dotnet restore
37+
- name: Build
38+
run: dotnet build -c Release --no-restore
39+
- name: Test
40+
run: dotnet test -c Release
41+
- name: Pack
42+
if: matrix.os == 'ubuntu-latest'
43+
run: dotnet pack -v normal -c Release --no-restore --include-symbols --include-source -p:PackageVersion=$GITHUB_RUN_ID src/$PROJECT_NAME/$PROJECT_NAME.*proj
44+
- name: Upload Artifact
45+
if: matrix.os == 'ubuntu-latest'
46+
uses: actions/upload-artifact@v2
47+
with:
48+
name: nupkg
49+
path: ./src/${{ env.PROJECT_NAME }}/bin/Release/*.nupkg
50+
prerelease:
51+
needs: build
52+
if: github.ref == 'refs/heads/develop'
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Download Artifact
56+
uses: actions/download-artifact@v1
57+
with:
58+
name: nupkg
59+
- name: Push to GitHub Feed
60+
run: |
61+
for f in ./nupkg/*.nupkg
62+
do
63+
curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_FEED
64+
done
65+
deploy:
66+
needs: build
67+
if: github.event_name == 'release'
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: actions/checkout@v2
71+
- name: Setup .NET Core
72+
uses: actions/setup-dotnet@v1
73+
with:
74+
dotnet-version: 5.0.100
75+
- name: Create Release NuGet package
76+
run: |
77+
arrTag=(${GITHUB_REF//\// })
78+
VERSION="${arrTag[2]}"
79+
echo Version: $VERSION
80+
VERSION="${VERSION//v}"
81+
echo Clean Version: $VERSION
82+
dotnet pack -v normal -c Release --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg src/$PROJECT_NAME/$PROJECT_NAME.*proj
83+
- name: Push to GitHub Feed
84+
run: |
85+
for f in ./nupkg/*.nupkg
86+
do
87+
curl -vX PUT -u "$GITHUB_USER:$GITHUB_TOKEN" -F package=@$f $GITHUB_FEED
88+
done
89+
- name: Push to NuGet Feed
90+
run: dotnet nuget push ./nupkg/*.nupkg --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY

.travis.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

CODE_OF_CONDUCT.md

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

Giraffe.TokenRouter.sln

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30114.105
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{86ED83A8-3B13-4595-B2F7-CF43BCF5C9C7}"
7+
EndProject
8+
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Giraffe.TokenRouter", "src\Giraffe.TokenRouter\Giraffe.TokenRouter.fsproj", "{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{3EE4079B-6A25-45CC-9AFA-39541D0F985C}"
11+
EndProject
12+
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Giraffe.TokenRouter.Tests", "tests\Giraffe.TokenRouter.Tests\Giraffe.TokenRouter.Tests.fsproj", "{34CBC613-DD70-46A3-8AC6-0689510E4147}"
13+
EndProject
14+
Global
15+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
16+
Debug|Any CPU = Debug|Any CPU
17+
Debug|x64 = Debug|x64
18+
Debug|x86 = Debug|x86
19+
Release|Any CPU = Release|Any CPU
20+
Release|x64 = Release|x64
21+
Release|x86 = Release|x86
22+
EndGlobalSection
23+
GlobalSection(SolutionProperties) = preSolution
24+
HideSolutionNode = FALSE
25+
EndGlobalSection
26+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
27+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
28+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}.Debug|Any CPU.Build.0 = Debug|Any CPU
29+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}.Debug|x64.ActiveCfg = Debug|Any CPU
30+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}.Debug|x64.Build.0 = Debug|Any CPU
31+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}.Debug|x86.ActiveCfg = Debug|Any CPU
32+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}.Debug|x86.Build.0 = Debug|Any CPU
33+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}.Release|Any CPU.ActiveCfg = Release|Any CPU
34+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}.Release|Any CPU.Build.0 = Release|Any CPU
35+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}.Release|x64.ActiveCfg = Release|Any CPU
36+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}.Release|x64.Build.0 = Release|Any CPU
37+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}.Release|x86.ActiveCfg = Release|Any CPU
38+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D}.Release|x86.Build.0 = Release|Any CPU
39+
{34CBC613-DD70-46A3-8AC6-0689510E4147}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
40+
{34CBC613-DD70-46A3-8AC6-0689510E4147}.Debug|Any CPU.Build.0 = Debug|Any CPU
41+
{34CBC613-DD70-46A3-8AC6-0689510E4147}.Debug|x64.ActiveCfg = Debug|Any CPU
42+
{34CBC613-DD70-46A3-8AC6-0689510E4147}.Debug|x64.Build.0 = Debug|Any CPU
43+
{34CBC613-DD70-46A3-8AC6-0689510E4147}.Debug|x86.ActiveCfg = Debug|Any CPU
44+
{34CBC613-DD70-46A3-8AC6-0689510E4147}.Debug|x86.Build.0 = Debug|Any CPU
45+
{34CBC613-DD70-46A3-8AC6-0689510E4147}.Release|Any CPU.ActiveCfg = Release|Any CPU
46+
{34CBC613-DD70-46A3-8AC6-0689510E4147}.Release|Any CPU.Build.0 = Release|Any CPU
47+
{34CBC613-DD70-46A3-8AC6-0689510E4147}.Release|x64.ActiveCfg = Release|Any CPU
48+
{34CBC613-DD70-46A3-8AC6-0689510E4147}.Release|x64.Build.0 = Release|Any CPU
49+
{34CBC613-DD70-46A3-8AC6-0689510E4147}.Release|x86.ActiveCfg = Release|Any CPU
50+
{34CBC613-DD70-46A3-8AC6-0689510E4147}.Release|x86.Build.0 = Release|Any CPU
51+
EndGlobalSection
52+
GlobalSection(NestedProjects) = preSolution
53+
{4E3FE2C0-F63C-4DD8-84A3-83198EE5237D} = {86ED83A8-3B13-4595-B2F7-CF43BCF5C9C7}
54+
{34CBC613-DD70-46A3-8AC6-0689510E4147} = {3EE4079B-6A25-45CC-9AFA-39541D0F985C}
55+
EndGlobalSection
56+
EndGlobal

appveyor.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)