fix(pub-con): Check if tar or zip to allow apptainers
This commit is contained in:
@@ -3,7 +3,10 @@ name: "publish-nuget"
|
||||
description: "Publishes a NuGet package to a Gitea-hosted NuGet registry and attests to its contents."
|
||||
inputs:
|
||||
package-path:
|
||||
description: "Path to the package directory relative to src/, e.g. Oceanbox.FvcomKit"
|
||||
description: "Path to the package directory to the root of the repo, e.g. src/Oceanbox.FvcomKit"
|
||||
required: true
|
||||
package-name:
|
||||
description: "Name of the package e.g. Oceanbox.FvcomKit"
|
||||
required: true
|
||||
nuget-key:
|
||||
description: "API key with which to authenticate to the NuGet registry."
|
||||
@@ -53,25 +56,25 @@ runs:
|
||||
shell: bash
|
||||
run: |
|
||||
nix-shell --run "set -o pipefail; set -o nounset; set -o errexit;
|
||||
dotnet restore src/${{ inputs.package-path }} ${{ inputs.dotnet-restore-args }}"
|
||||
dotnet restore ${{ inputs.package-path }} ${{ inputs.dotnet-restore-args }}"
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
nix-shell --run "set -o pipefail; set -o nounset; set -o errexit;
|
||||
dotnet build --no-restore --configuration ${{ inputs.configuration }} src/${{ inputs.package-path }} ${{ inputs.dotnet-build-args }}"
|
||||
dotnet build --no-restore --configuration ${{ inputs.configuration }} ${{ inputs.package-path }} ${{ inputs.dotnet-build-args }}"
|
||||
|
||||
- name: Pack
|
||||
shell: bash
|
||||
run: |
|
||||
nix-shell --run "set -o pipefail; set -o nounset; set -o errexit;
|
||||
dotnet pack src/${{ inputs.package-path }} --no-restore ${{ inputs.dotnet-pack-args }} --configuration ${{ inputs.configuration }} -o ${{ inputs.nupkg-dir }}"
|
||||
dotnet pack ${{ inputs.package-path }} --no-restore ${{ inputs.dotnet-pack-args }} --configuration ${{ inputs.configuration }} -o ${{ inputs.nupkg-dir }}"
|
||||
|
||||
- name: Publish NuGet package
|
||||
shell: bash
|
||||
run: |
|
||||
nix-shell --run "set -o pipefail; set -o nounset; set -o errexit;
|
||||
dotnet nuget push ${{ inputs.nupkg-dir }}/${{ inputs.package-path }}.*.nupkg --api-key ${{ inputs.nuget-key }} --source '${{ inputs.source-name }}' --skip-duplicate"
|
||||
dotnet nuget push ${{ inputs.nupkg-dir }}/${{ inputs.package-name }}.*.nupkg --api-key ${{ inputs.nuget-key }} --source '${{ inputs.source-name }}' --skip-duplicate"
|
||||
|
||||
# TODO: Add attestation
|
||||
# - name: Attest Build Provenance
|
||||
|
||||
Reference in New Issue
Block a user