File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 38
38
publish-prerelease :
39
39
runs-on : macos-latest
40
40
needs : package
41
- if : github.ref == 'refs/heads/main '
41
+ if : github.ref == 'refs/heads/deploy '
42
42
name : Publish package on github.com
43
43
steps :
44
- - run : echo version -- ${{ needs.package.outputs.version }} --
45
- - run : echo dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name github --username ${{ github.repository_owner }} --password ${{ github.token }} --store-password-in-clear-text
46
- - run : echo dotnet nuget push "**/*.nupkg" --source github
44
+ - name : Create tag
45
+ uses : actions/github-script@v3
46
+ with :
47
+ github-token : ${{ github.token }}
48
+ script : |
49
+ github.git.createRef({
50
+ owner: context.repo.owner,
51
+ repo: context.repo.repo,
52
+ ref: "refs/tags/${{ needs.package.outputs.version }}",
53
+ sha: context.sha
54
+ })
55
+ - run : dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name github --username ${{ github.repository_owner }} --password ${{ github.token }} --store-password-in-clear-text
56
+ - run : dotnet nuget push "**/*.nupkg" --source github
You can’t perform that action at this time.
0 commit comments