From 7fc421ce2603d448eba5daf07589c9733b42f50a Mon Sep 17 00:00:00 2001 From: rvazarkar Date: Tue, 26 Sep 2023 12:28:29 -0400 Subject: [PATCH] feat: publish packages to new nuget repo --- .github/workflows/publish.yml | 8 ++++++++ sleet.json | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 sleet.json diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index be378cd4..9bd044e4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,6 +49,14 @@ jobs: - name: Publish NuGet run: dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_TOKEN }} --skip-duplicate + - name: Publish to SpecterOps Packages + env: + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_KEY }} + run: | + dotnet tool install -g sleet + sleet push *.nupkg --skip-existing + ghpages: name: ghpages needs: nuget diff --git a/sleet.json b/sleet.json new file mode 100644 index 00000000..67932d2e --- /dev/null +++ b/sleet.json @@ -0,0 +1,11 @@ +{ + "sources": [ + { + "name": "feed", + "type": "s3", + "path": "https://s3.amazonaws.com/bloodhound-ad", + "region": "us-east-1", + "bucketName": "bloodhound-ad" + } + ] +} \ No newline at end of file