Skip to content

Commit 2f633a3

Browse files
committed
WIP on deploy action
1 parent 76abdfc commit 2f633a3

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/deploy.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'NuGet Deployment'
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
7+
8+
jobs:
9+
deployment:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/download-artifact@v3
13+
with:
14+
name: artifact
15+
- name: Display structure of downloaded files
16+
run: ls -R
17+
- name: Push
18+
run: dotnet nuget push ${{ github.workspace}}/artifact/*.nupkg --source https://nuget.pkg.github.com/ctolkien/index.json --api-key ${GITHUB_TOKEN} --skip-duplicate
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
- name: Create GitHub Release
22+
run: "gh release create 'Release ${{ env.ReleaseName }}' --generate-notes"
23+
env:
24+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
25+

.vscode/settings.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"yaml.schemas": {
3+
"https://json.schemastore.org/github-workflow.json": "file:///c%3A/Users/ChadTolkien/source/Slugify/.github/workflows/deploy.yml"
4+
}
5+
}

0 commit comments

Comments
 (0)