update workflows

This commit is contained in:
SSimco
2025-08-30 21:32:27 +03:00
parent ffc6ab784e
commit a9988361e6
2 changed files with 17 additions and 14 deletions
@@ -22,20 +22,22 @@ runs:
- name: Setup NuGet Credentials for vcpkg
shell: bash
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
alias vcpkg_nuget=`./dependencies/vcpkg/vcpkg.exe fetch nuget | tail -n 1`
else
alias vcpkg_nuget="mono `./dependencies/vcpkg/vcpkg fetch nuget | tail -n 1`"
fi
function vcpkg_nuget() {
if [ "$RUNNER_OS" == "Windows" ]; then
`./dependencies/vcpkg/vcpkg.exe fetch nuget | tail -n 1` "$@"
else
mono `./dependencies/vcpkg/vcpkg fetch nuget | tail -n 1` "$@"
fi
}
vcpkg_nuget \
sources add \
-source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
-storepasswordincleartext \
-name "GitHub" \
-username "${{ github.repository_owner }}" \
-password "${{ inputs.github-token }}"
sources add \
-source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
-storepasswordincleartext \
-name "GitHub" \
-username "${{ github.repository_owner }}" \
-password "${{ inputs.github-token }}"
vcpkg_nuget \
setapikey "${{ inputs.github-token }}" \
-source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
setapikey "${{ inputs.github-token }}" \
-source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
+2 -1
View File
@@ -1,5 +1,6 @@
name: Build check
on:
on:
workflow_dispatch:
pull_request:
paths-ignore:
- "*.md"