Skip to content

Commit 6fc1cec

Browse files
test body path as input
1 parent e9c24c9 commit 6fc1cec

File tree

1 file changed

+24
-30
lines changed

1 file changed

+24
-30
lines changed

.github/workflows/test-release.yml

Lines changed: 24 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,13 @@ jobs:
5151
echo "VERSION=$VERSION"
5252
echo "VERSION=$VERSION" >> $GITHUB_ENV
5353
54-
- name: Read release notes from file
55-
id: read_release_notes
56-
run: |
57-
RELEASE_NOTES=$(cat ./release-notes/v${{ env.VERSION }}.md)
58-
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
59-
echo "$RELEASE_NOTES" >> $GITHUB_ENV
60-
echo "EOF" >> $GITHUB_ENV
61-
62-
- name: Echo release notes content
63-
run: |
64-
echo ${{ env.RELEASE_NOTES }}
54+
# - name: Read release notes from file
55+
# id: read_release_notes
56+
# run: |
57+
# RELEASE_NOTES=$(cat ./release-notes/v${{ env.VERSION }}.md)
58+
# echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
59+
# echo "$RELEASE_NOTES" >> $GITHUB_ENV
60+
# echo "EOF" >> $GITHUB_ENV
6561

6662
- name: Configure Git Credentials
6763
run: |
@@ -70,25 +66,23 @@ jobs:
7066
git config --global user.name "GitHub Actions"
7167
git config --global user.email "[email protected]"
7268
73-
# - name: Create Git Tag
74-
# run: |
75-
# git tag -a "v${{ env.VERSION }}" -m "Release v${{ env.VERSION }}"
76-
# git push origin "v${{ env.VERSION }}"
69+
- name: Create Git Tag
70+
run: |
71+
git tag -a "v${{ env.VERSION }}" -m "Release v${{ env.VERSION }}"
72+
git push origin "v${{ env.VERSION }}"
7773
78-
# - name: Create GitHub Release
79-
# uses: actions/create-release@v1
80-
# env:
81-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82-
# with:
83-
# tag_name: "v${{ env.VERSION }}"
84-
# release_name: "Finance.NET ${{ env.VERSION }}"
85-
# body: ${{ env.RELEASE_NOTES }}
86-
# draft: false
87-
# prerelease: false
74+
- name: Create GitHub Release
75+
uses: actions/create-release@v1
76+
env:
77+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
with:
79+
tag_name: "v${{ env.VERSION }}"
80+
release_name: "Finance.NET ${{ env.VERSION }}"
81+
body_path: ./release-notes/v${{ env.VERSION }}.md
8882

89-
# - name: Add GitHub Packages NuGet Source
90-
# run: |
91-
# dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name github --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text
83+
- name: Add GitHub Packages NuGet Source
84+
run: |
85+
dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name github --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text
9286
93-
# - name: Publish to GitHub Packages
94-
# run: dotnet nuget push ./nupkg/*.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }}
87+
- name: Publish to GitHub Packages
88+
run: dotnet nuget push ./nupkg/*.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)