Skip to content

Commit dae3df0

Browse files
committed
Upload assets
1 parent a455ea0 commit dae3df0

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -57,35 +57,27 @@ jobs:
5757
xml_value=$(xmllint --xpath "string(//Project/PropertyGroup/Version)" ./src/Ocelot.Testing.csproj)
5858
echo "Replaced Version: $xml_value"
5959
echo "PkgVersion=$xml_value" >> $GITHUB_OUTPUT
60-
# - name: Create GitHub Release
61-
# uses: actions/create-release@v1
62-
# env:
63-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
64-
# PACKAGE_VERSION: ${{ steps.ver.outputs.PkgVersion }}
65-
# OCELOT_VERSION: ${{ steps.xml.outputs.OcelotRefVer }}
66-
# with:
67-
# tag_name: 0.0.2 # ${{ github.ref }}
68-
# release_name: Release ${{ github.ref }}
69-
# #body_path: ReleaseNotes.md
70-
# body: |
71-
# ## Version [${{ env.PACKAGE_VERSION }}](https://www.nuget.org/packages/Ocelot.Testing/${{ env.PACKAGE_VERSION }})
72-
# - Ocelot dependency package: v[${{ env.OCELOT_VERSION }}](https://www.nuget.org/packages/Ocelot/${{ env.OCELOT_VERSION }})
73-
# - For Ocelot release: [${{ env.OCELOT_VERSION }}](https://github.com/ThreeMammals/Ocelot/releases/tag/${{ env.OCELOT_VERSION }})
74-
# draft: false
75-
# prerelease: false
60+
- name: Find assets
61+
id: assets
62+
run: |
63+
echo "ASSETS=$(find . -name '*.md' -print | tr '\n' ' ')" >> $GITHUB_OUTPUT
64+
for file in $ASSETS; do
65+
echo "Processing $file"
66+
done
67+
- name: Use files in another step
68+
run: |
69+
echo "Files found: ${{ steps.assets.outputs.ASSETS }}"
7670
- name: GitHub Release
7771
uses: softprops/action-gh-release@v2
7872
env:
7973
PACKAGE_VERSION: ${{ steps.ver.outputs.PkgVersion }}
8074
OCELOT_VERSION: ${{ steps.xml.outputs.OcelotRefVer }}
8175
with:
82-
tag_name: 0.0.2 # Name of a tag. defaults to github.ref_name
76+
tag_name: 0.0.3 # Name of a tag. defaults to github.ref_name
8377
body: |
8478
## Version [${{ env.PACKAGE_VERSION }}](https://www.nuget.org/packages/Ocelot.Testing/${{ env.PACKAGE_VERSION }})
8579
- Ocelot dependency package: v[${{ env.OCELOT_VERSION }}](https://www.nuget.org/packages/Ocelot/${{ env.OCELOT_VERSION }})
8680
- For Ocelot release: [${{ env.OCELOT_VERSION }}](https://github.com/ThreeMammals/Ocelot/releases/tag/${{ env.OCELOT_VERSION }})
87-
# files: |
88-
# Release.txt
89-
# LICENSE
81+
files: ${{ steps.assets.outputs.ASSETS }}
9082
draft: false
9183
prerelease: false

0 commit comments

Comments
 (0)