Skip to content

nuget updates

nuget updates #374

name: Ubuntu .NET build
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches: [ master ]
paths:
- 'starsky/**'
- '!starsky/starsky/clientapp/**'
- '!starsky/Dockerfile'
- '!starsky/docker_demo_setup.sh'
- '.github/workflows/**'
workflow_dispatch:
push:
branches: [release/*]
paths:
- '**.cshtml'
- '**.cs'
- '**.sln'
- '**.json'
- '**.csproj'
jobs:
build:
runs-on: ubuntu-latest
env:
WEBSITE_SITE_NAME: "ci"
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.404
- name: Cache nuget packages (*nix)
uses: actions/cache@v4
with:
# nuget cache files are stored in `~/.nuget/packages` on Linux/macOS
path: ~/.nuget/packages
key: ${{ runner.os }}-build-netcore-${{ hashFiles('./starsky/starsky/nuget-packages-list.json') }}
restore-keys: |
${{ runner.os }}-build-netcore-
- name: "BuildNetCore (Ubuntu)"
shell: bash
working-directory: ./starsky
run: bash build.sh --Target BuildNetCore --no-sonar --no-publish --no-dependencies --no-logo
- name: "TestNetCore (Ubuntu)"
shell: bash
working-directory: ./starsky
run: bash build.sh --Target TestNetCore --no-logo --no-publish
- name: "Set locale to: nl_NL.UTF-8"
run: |
export LANG="nl_NL.UTF-8"
sudo locale-gen nl_NL.UTF-8
sudo update-locale LANG=nl_NL.UTF-8
date
- name: "Locale TestNetCore [nl_NL] (Ubuntu)"
shell: bash
working-directory: ./starsky
run: |
export LANG="nl_NL.UTF-8"
bash build.sh --Target TestNetCore --no-dependencies --no-publish --no-logo
trigger_pipe_release_desktop:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
# needs nothing - no dependencies
steps:
- name: trigger desktop-release-on-tag-net-electron.yml
shell: bash
env:
NOTE_READ_THIS_NOW: "Need a github token that has more rights otherwise it will be ignored"
run: |
curl \
-H"authorization: Bearer ${{ secrets.WORKFLOW_GITHUB }}" \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/desktop-release-on-tag-net-electron.yml/dispatches \
-d '{"ref":"master"}' -v