Skip to content

Create validation and release workflows for nuget packages #7

Create validation and release workflows for nuget packages

Create validation and release workflows for nuget packages #7

Workflow file for this run

name: Validate nuget package
on:
workflow_dispatch:
pull_request:
branches:
- master
jobs:
build_nuget_package:
name: "Build nuget package"
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- arch: 'amd64'
platform: 'x64'
- arch: 'arm64'
platform: 'ARM64'
uses: ./.github/workflows/callable-build-and-run-arc-tests.yml

Check failure on line 22 in .github/workflows/bcny-validate.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/bcny-validate.yml

Invalid workflow file

error parsing called workflow ".github/workflows/bcny-validate.yml" -> "./.github/workflows/callable-build-and-run-arc-tests.yml" : failed to fetch workflow: workflow was not found.
with:
arch: ${{ matrix.arch }}
platform: ${{ matrix.platform }}
# publish_nuget_package:
# name: "Publish nuget package"
# runs-on: windows-latest
# needs: publish_nuget_package
# strategy:
# fail-fast: false
# matrix:
# include:
# - arch: 'amd64'
# platform: 'x64'
# - arch: 'arm64'
# platform: 'ARM64'
# - name: Publish NuGet Packages
# env:
# NUGET_SOURCE_NAME: TheBrowserCompany
# NUGET_SOURCE_URL: https://nuget.pkg.github.com/thebrowsercompany/index.json
# NUGET_SOURCE_USERNAME: thebrowsercompany-bot2
# NUGET_SOURCE_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
# NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }}
# run: |
# if ((nuget sources List | Select-String "${env:NUGET_SOURCE_NAME}").Count -gt 0) {
# nuget sources Remove -Name "${env:NUGET_SOURCE_NAME}"
# }
# nuget sources Add -Name ${env:NUGET_SOURCE_NAME} -Source ${env:NUGET_SOURCE_URL} -Username ${env:NUGET_SOURCE_USERNAME} -Password ${env:NUGET_SOURCE_PASSWORD} -StorePasswordInClearText
# nuget setApiKey ${env:NUGET_API_KEY} -Source ${env:NUGET_SOURCE_URL}
# $pkgs = Get-ChildItem -Path org.libsodium.libsodium.windows.${{ matrix.arch }}.*.nupkg
# nuget push $pkgs[0].Name -Source ${env:NUGET_SOURCE_URL} -SkipDuplicate
# shell: pwsh