Skip to content

Bump AltV.Net.Client from 15.0.105-dev to 16.3.4 #322

Bump AltV.Net.Client from 15.0.105-dev to 16.3.4

Bump AltV.Net.Client from 15.0.105-dev to 16.3.4 #322

Workflow file for this run

name: Compile Mod
on:
release:
types:
- created
push:
pull_request:
permissions:
contents: write
id-token: write
pages: write
packages: write
jobs:
lint-and-compile:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
dotnet-version: "7.0.x"
- run: dotnet restore ${{ github.event.repository.name }}.sln
- uses: justalemon/[email protected]
with:
version: 1.10.0.${{ github.run_number }}
use-tag: true
csproj-files: "**/*.csproj"
- run: dotnet build ${{ github.event.repository.name }}.sln -c ${{ matrix.configuration }}
working-directory: ${{ env.GITHUB_WORKSPACE }}
- uses: actions/[email protected]
with:
name: ${{ github.event.repository.name }}.${{ matrix.configuration }}
path: bin/${{ matrix.configuration }}
docs:
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
needs:
- lint-and-compile
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
dotnet-version: "7.0.x"
- uses: actions/[email protected]
with:
name: ${{ github.event.repository.name }}.Release
path: bin/Release
- run: ls -R
working-directory: bin/Release
- run: dotnet tool update -g docfx
- run: docfx docs/docfx.json
- uses: actions/[email protected]
with:
path: "docs/_site"
- uses: actions/[email protected]
github-package-registry:
runs-on: ubuntu-22.04
if: ${{ github.ref == 'refs/heads/master' }}
needs:
- lint-and-compile
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
dotnet-version: "7.0.x"
- uses: actions/[email protected]
with:
name: ${{ github.event.repository.name }}.Release
path: bin/Release
- run: ls -R
working-directory: bin/Release
- run: 7z a ${{ github.event.repository.name }}.zip ${{ github.workspace }}/bin/Release/*
- run: dotnet nuget push "**/*.nupkg" -s 'https://nuget.pkg.github.com/${{ github.event.repository.owner.name }}/index.json' -k ${{ secrets.GITHUB_TOKEN }}
deploy:
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'release' }}
needs:
- lint-and-compile
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
dotnet-version: "7.0.x"
- uses: actions/[email protected]
with:
name: ${{ github.event.repository.name }}.Release
path: bin/Release
- run: ls -R
working-directory: bin/Release
- run: 7z a ${{ github.event.repository.name }}.zip ${{ github.workspace }}/bin/Release/*
- run: dotnet nuget push "**/*.nupkg" -s 'https://api.nuget.org/v3/index.json' -k ${{ secrets.NUGET }}
- uses: ncipollo/[email protected]
with:
allowUpdates: true
artifactErrorsFailBuild: true
artifacts: ${{ github.event.repository.name }}.zip
omitBodyDuringUpdate: true
omitDraftDuringUpdate: true
omitNameDuringUpdate: true
omitPrereleaseDuringUpdate: true