Skip to content

Commit 67947fb

Browse files
authored
Merge pull request #67 from ovh/release
feat: prepare github actions for releasing
2 parents ebaeac8 + 5bb9810 commit 67947fb

File tree

4 files changed

+57
-54
lines changed

4 files changed

+57
-54
lines changed

.github/workflows/release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- *
7+
8+
permissions:
9+
contents: read
10+
11+
env:
12+
DOTNET_VERSION: '6.0.401' # The .NET SDK version to use
13+
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
14+
NUGET_FEED_URL: https://api.nuget.org/v3/index.json
15+
jobs:
16+
publish:
17+
name: Publish csharp-ovh on Nuget
18+
runs-on: ubuntu-latest
19+
needs: publish_binary
20+
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag=v4.2.2
23+
- name: Setup .NET Core
24+
uses: actions/setup-dotnet@v3
25+
with:
26+
dotnet-version: ${{ env.DOTNET_VERSION }}
27+
- name: Install dependencies
28+
run: dotnet restore
29+
- name: Building Nuget package
30+
run: dotnet pack -c Release csharp-ovh/csharp-ovh.csproj
31+
- name: Publish nuget package to Nuget.org
32+
run: |
33+
dotnet nuget push ${{github.workspace}}/csharp-ovh/bin/Release/csharp-ovh.*.nupkg -s ${{ env.NUGET_FEED_URL }} -k ${{ env.NUGET_PUBLISH_KEY }} --skip-duplicate
34+
echo "done publishing packages"

.travis.yml

-33
This file was deleted.

LICENSE

+21-19
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
Copyright(c) 2013-2016, OVH SAS.
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2013-2025, OVH SAS
24
All rights reserved.
35

46
Redistribution and use in source and binary forms, with or without
57
modification, are permitted provided that the following conditions are met:
68

7-
* Redistributions of source code must retain the above copyright
8-
notice, this list of conditions and the following disclaimer.
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
911

10-
* Redistributions in binary form must reproduce the above copyright
11-
notice, this list of conditions and the following disclaimer in the
12-
documentation and/or other materials provided with the distribution.
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
1315

14-
* Neither the name of OVH SAS nor the
15-
names of its contributors may be used to endorse or promote products
16-
derived from this software without specific prior written permission.
16+
* Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
1719

18-
THIS SOFTWARE IS PROVIDED BY OVH SAS AND CONTRIBUTORS ``AS IS'' AND ANY
19-
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21-
DISCLAIMED.IN NO EVENT SHALL OVH SAS AND CONTRIBUTORS BE LIABLE FOR ANY
22-
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25-
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.. image:: https://travis-ci.org/ovh/csharp-ovh.svg?branch=master
2-
:target: https://travis-ci.org/ovh/csharp-ovh
1+
.. image:: https://badge.fury.io/nu/csharp-ovh.svg
2+
:target: https://www.nuget.org/packages/csharp-ovh
33

44
Lightweight wrapper around OVH's APIs. Handles all the hard work including
55
credential creation and requests signing.

0 commit comments

Comments
 (0)