Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasticFiasco committed Mar 24, 2024
1 parent 3e64997 commit df0f6ae
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,30 @@ jobs:

release:
needs: build
if: startsWith(github.ref, 'refs/tags/v')
# if: startsWith(github.ref, 'refs/tags/v')
runs-on: windows-latest
steps:
- uses: actions/setup-dotnet@v4
- uses: actions/download-artifact@v4
with:
name: nuget
path: artifacts
- run: dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
- uses: actions/github-script@v7
with:
script: |
const owner = context.repo.owner;
const repo = context.repo.repo;
const tag_name = context.ref.replace(/refs\/tags\//, '');
- run: echo $PWD
- run: Tree
# - run: dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
# - uses: actions/github-script@v7
# with:
# script: |
# const owner = context.repo.owner;
# const repo = context.repo.repo;
# const tag_name = context.ref.replace(/refs\/tags\//, '');

github.rest.repos.createRelease({
owner,
repo,
tag_name,
name: "Release " + tag_name,
body: "TODO",
draft: true,
});
# github.rest.repos.createRelease({
# owner,
# repo,
# tag_name,
# name: "Release " + tag_name,
# body: "TODO",
# draft: true,
# });

0 comments on commit df0f6ae

Please sign in to comment.