Skip to content

Commit 0cd7b2e

Browse files
committed
changelog generation
1 parent 0996a0f commit 0cd7b2e

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

.github/workflows/release-consolegalaxy.yml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
zip -r ConsoleGalaxy-${{ github.ref_name }}.zip .
7575
- name: list files tag:3
7676
run: ls -R
77-
# make a CHANGELOGS.md file
77+
# make a CHANGELOGS.md file
7878
- name: Create CHANGELOGS file
7979
run: |
8080
echo "Changes for version ${{ github.ref_name }}" > CHANGELOGS.md
@@ -83,4 +83,37 @@ jobs:
8383
# echo the CHANGELOGS file
8484
- name: Show CHANGELOGS
8585
run: cat CHANGELOGS.md
86-
86+
- name: list files tag:4
87+
run: ls -R
88+
release:
89+
runs-on: ubuntu-latest
90+
needs: prepare-zip
91+
steps:
92+
- name: Checkout code
93+
uses: actions/checkout@v4
94+
- name: Create a release
95+
id: create_release
96+
uses: actions/create-release@v1
97+
env:
98+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
99+
with:
100+
tag_name: ${{ github.ref_name }}
101+
release_name: Release ${{ github.ref_name }}
102+
body: |
103+
${{ steps.prepare-zip.outputs.CHANGELOGS }}
104+
draft: false
105+
prerelease: false
106+
- name: list files tag:5
107+
run: ls -R
108+
- name: Upload release asset
109+
id: upload-release-asset
110+
uses: actions/upload-release-asset@v1
111+
env:
112+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113+
with:
114+
upload_url: ${{ steps.create_release.outputs.upload_url }}
115+
asset_path: ConsoleGalaxy_zipFolder/ConsoleGalaxy-${{ github.ref_name }}.zip
116+
asset_name: ConsoleGalaxy-${{ github.ref_name }}.zip
117+
asset_content_type: application/zip
118+
- name: list files tag:6
119+
run: ls -R

0 commit comments

Comments
 (0)