Publish changelog YAMLs to artifacts instead of the release metadata
@@ -24,14 +24,20 @@ jobs:
uses: jenkinsci/jenkins-core-changelog-generator@master
env:
GITHUB_AUTH: github-actions:${{ secrets.GITHUB_TOKEN }}
- # Upload YAML to the release draft assets
- - name: Upload changelog.yaml to the Release Draft
- id: upload-changelog-yaml
- uses: actions/upload-release-asset@v1.0.1
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ - name: Upload Changelog YAML
+ uses: actions/upload-artifact@v1
with:
- upload_url: ${{ steps.release-drafter.outputs.upload_url }}
- asset_path: ./changelog.yaml
- asset_name: changelog.yaml
- asset_content_type: text/yaml
+ name: changelog.yaml
+ path: changelog.yaml
+#TODO(oleg-nenashev): It will not work well with Release Drafter which does not recreated releases. Asset does not get overwritten, and there is no ready-to-go API for overriding assets
+ # Upload YAML to the release draft assets
+# - name: Upload changelog.yaml to the Release Draft
+# id: upload-changelog-yaml
+# uses: actions/upload-release-asset@v1.0.1
+# env:
+# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+# with:
+# upload_url: ${{ steps.release-drafter.outputs.upload_url }}
+# asset_path: ./changelog.yaml
+# asset_name: changelog.yaml
+# asset_content_type: text/yaml
