-
Notifications
You must be signed in to change notification settings - Fork 15
29 lines (28 loc) · 1.2 KB
/
nuget.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# manual trigger GitHub Actions
# start with an environment with docker, then run docker container with bash script that builds and pushes nuget package to Azure Artifacts specified in secrets
# https://docs.microsoft.com/en-us/azure/devops/artifacts/nuget/publish?view=azure-devops&tabs=windows#push-packages-to-azure-artifacts
name: NuGet
on:
workflow_dispatch:
inputs:
version:
description: 'Version'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: clone submodules
run: git submodule update --init --recursive --no-recommend-shallow
- name: Build and push NuGet package
run: |
docker run --rm \
-e PACKAGE_VERSION=${{ github.event.inputs.version }} \
-e PUBLISH_PACKAGE_FEED=${{ secrets.AZURE_ARTIFACTS_FEED }} \
-e PUBLISH_PACKAGE_USERNAME=${{ secrets.AZURE_ARTIFACTS_USERNAME }} \
-e PUBLISH_PACKAGE_PASSWORD=${{ secrets.AZURE_ARTIFACTS_PASSWORD }} \
-v "$(pwd):/hpcpack-linux-agent" \
-w "/hpcpack-linux-agent/nodemanager" \
ghcr.io/phusion/holy-build-box/hbb-64 \
bash build_and_get_artifact.sh