Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build, test, and publish Into RDF" | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: "Build, test, and deploy Into RDF" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: "8.x.x" | |
- name: Restore dependencies | |
run: dotnet restore ./src/IntoRdf -r linux-x64 | |
- name: Setting git commit url | |
run: | | |
git_commit_url="${{ github.server_url}}/${{ github.repository }}/commit/${{ github.sha }}" | |
echo $git_commit_url > "./src/IntoRdf/Properties/commit.url" | |
- name: Build Solution | |
run: dotnet build ./src/IntoRdf --no-restore --configuration Release | |
- name: Tests | |
run: dotnet test ./src/IntoRdf --no-restore --no-build --configuration Release | |
- name: Create nuget Artifact | |
run: dotnet pack ./src/IntoRdf --no-restore --no-build --configuration Release --output ${{ github.workspace }}/out -p:PackageVersion="${{ github.event.release.name }}" | |
- name: Publish | |
run: dotnet nuget push ${{ github.workspace }}/out/IntoRdf*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json |