File tree 1 file changed +15
-8
lines changed
1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,13 @@ jobs:
117
117
needs : ci
118
118
runs-on : ubuntu-latest
119
119
steps :
120
+ - name : Checkout repository
121
+ id : checkout_repo
122
+ uses : actions/checkout@v2
123
+ with :
124
+ token : ${{ secrets.GITHUB_TOKEN }}
125
+ fetch-depth : 0
126
+
120
127
# - name: Download and extract NuGet packages
121
128
# id: dl_packages_artifact
122
129
# uses: actions/download-artifact@v2
@@ -139,14 +146,14 @@ jobs:
139
146
140
147
- name : Create and publish release
141
148
id : create_release
142
- uses : softprops/action-gh-release@v1
143
- with :
144
- name : OpenApi v${{ needs.ci.outputs.latest_version }}
145
- tag_name : v${{ needs.ci.outputs.latest_version }}
146
- # files: |
147
- # NuGet/Microsoft.OpenApi.${{ needs.ci.outputs.latest_version }}.nupkg
148
- # NuGet/Microsoft.OpenApi.Readers.${{ needs.ci.outputs.latest_version }}.nupkg
149
+ shell : pwsh
150
+ run : |
151
+ $releaseTag = " v${{ needs.ci.outputs.latest_version }}"
152
+ $releaseTitle = "OpenApi v${{ needs.ci.outputs.latest_version }}"
153
+ # $releaseAssets = 'NuGet/Microsoft.OpenApi.${{ needs.ci.outputs.latest_version }}.nupkg', 'NuGet/Microsoft.OpenApi.Readers.${{ needs.ci.outputs.latest_version }}.nupkg'
154
+
155
+ gh release create $releaseTag -t $releaseTitle $releaseAssets
149
156
env :
150
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
157
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
151
158
152
159
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)
You can’t perform that action at this time.
0 commit comments