Skip to content

Commit e4731eb

Browse files
committed
Local fixes. Test to check pipeline.
1 parent 1cff4fe commit e4731eb

16 files changed

+564
-692
lines changed

.github/FUNDING.yml

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

.github/dependabot.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: OoplesFinance.YahooFinanceAPI Vasil's fix Build and Publish
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
tags-ignore: ['v*']
7+
pull_request:
8+
branches: ["master"]
9+
10+
env:
11+
SOLUTION_NAME: src/OoplesFinance.YahooFinanceAPI.csproj
12+
PROJECTS: >
13+
src/OoplesFinance.YahooFinanceAPI.csproj
14+
NUGET_SOURCE: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
15+
VERSION: 10.10.${{ github.run_number }}-vasil
16+
NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }}
17+
DOTNET_VERSION: '8.0.x'
18+
19+
jobs:
20+
build-and-pack:
21+
runs-on: ubuntu-latest
22+
23+
permissions:
24+
packages: write
25+
contents: read
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v3
30+
with:
31+
fetch-depth: 0
32+
token: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Setup .NET SDK
35+
uses: actions/setup-dotnet@v3
36+
with:
37+
dotnet-version: ${{ env.DOTNET_VERSION }}
38+
39+
- name: Restore dependencies
40+
run: dotnet restore ${{ env.SOLUTION_NAME }}
41+
42+
- name: Build solution
43+
run: dotnet build ${{ env.SOLUTION_NAME }} --configuration Release -p:Version=${{ env.VERSION }} --no-restore
44+
45+
#- name: Run tests
46+
# run: dotnet test ${{ env.SOLUTION_NAME }} --configuration Release --no-restore --no-build
47+
48+
- name: Pack and Publish
49+
run: |
50+
rm -rf ./packages
51+
mkdir ./packages
52+
for project in ${{ env.PROJECTS }}
53+
do
54+
dotnet pack "$project" --configuration Release --no-restore --no-build -p:PackageVersion=${{ env.VERSION }} -o ./packages
55+
done
56+
dotnet nuget push ./packages/*.nupkg --source ${{ env.NUGET_SOURCE }} --api-key ${{ env.NUGET_API_KEY }} --skip-duplicate
57+
58+
#- name: Create Git Tag
59+
# if: success()
60+
# run: |
61+
# git config --global user.name "${{ github.actor }}"
62+
# git config --global user.email "${{ github.actor }}@users.noreply.github.com"
63+
# git tag -a "v${{ env.VERSION }}" -m "Version ${{ env.VERSION }}"
64+
# git push origin "v${{ env.VERSION }}"

.github/workflows/codeql.yml

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

.github/workflows/release.yml

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

.github/workflows/stale.yml

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

0 commit comments

Comments
 (0)