Skip to content

Commit

Permalink
Merge pull request #60 from ctolkien/chadt/deployment
Browse files Browse the repository at this point in the history
WIP on deploy action
  • Loading branch information
ctolkien authored Jan 17, 2023
2 parents 76abdfc + 2f633a3 commit 0e988ed
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'NuGet Deployment'

on:
workflow_call:
workflow_dispatch:


jobs:
deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
- name: Display structure of downloaded files
run: ls -R
- name: Push
run: dotnet nuget push ${{ github.workspace}}/artifact/*.nupkg --source https://nuget.pkg.github.com/ctolkien/index.json --api-key ${GITHUB_TOKEN} --skip-duplicate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release
run: "gh release create 'Release ${{ env.ReleaseName }}' --generate-notes"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "file:///c%3A/Users/ChadTolkien/source/Slugify/.github/workflows/deploy.yml"
}
}

0 comments on commit 0e988ed

Please sign in to comment.