Skip to content

Commit

Permalink
Refactored to node deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
alsi-lawr committed Aug 31, 2024
1 parent 3322806 commit 7457e63
Show file tree
Hide file tree
Showing 7 changed files with 28,331 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
**/bin/**
**/obj/**
18 changes: 3 additions & 15 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'Reusable action to build and deploy a .NET project to NuGet.'
author: 'ALSI'

inputs:
deploy-nuget-project:
project:
description: 'The path to the .NET project to deploy'
required: true
version:
Expand All @@ -28,20 +28,8 @@ inputs:
- false

runs:
using: 'composite'
steps:
- name: Deploy to NuGet in Docker
shell: bash
run: |
docker run --rm \
-v ${{ github.workspace }}:/workspace \
-e NUGET_API_KEY=${{ inputs.nuget-api-key }} \
-e GITHUB_REF_NAME=${{ github.ref_name }} \
-e GITHUB_SHA=${{ github.sha }} \
-w /workspace \
-v ./src/deploy.sh:/ci/deploy.sh \
mcr.microsoft.com/dotnet/sdk:${{ inputs.dotnet-version }} \
bash -c "/ci/deploy.sh /workspace/${{ inputs.deploy-nuget-project }} ${{ inputs.version }} ${{ inputs.build-only }}"
using: 'node20'
main: 'dist/index.js'

branding:
icon: 'package'
Expand Down
Loading

0 comments on commit 7457e63

Please sign in to comment.