mirror of
https://github.com/izzy2lost/WeeU.git
synced 2026-07-06 00:19:59 -07:00
update workflows
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
name: Build check
|
||||
on:
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- "*.md"
|
||||
|
||||
Reference in New Issue
Block a user