diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 563936012..938bc5058 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -132,7 +132,7 @@ jobs: run: echo "ffversion=$(./fastfetch --version-raw)" >> $GITHUB_OUTPUT - name: upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: fastfetch-linux path: ./fastfetch-*.* @@ -188,7 +188,7 @@ jobs: run: ctest - name: upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: fastfetch-macos path: ./fastfetch-*.* @@ -204,7 +204,7 @@ jobs: uses: actions/checkout@v4 - name: run VM - uses: cross-platform-actions/action@v0.21.1 + uses: cross-platform-actions/action@master with: operating_system: freebsd version: '13.2' @@ -222,7 +222,7 @@ jobs: ctest - name: upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: fastfetch-freebsd path: ./fastfetch-*.* @@ -284,7 +284,7 @@ jobs: run: 7z a -t7z -mx9 -bd -y fastfetch-$(./fastfetch --version-raw)-Win64.7z *.dll fastfetch.exe flashfetch.exe presets - name: upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: fastfetch-win64 path: ./fastfetch-*-Win64.* @@ -351,7 +351,7 @@ jobs: run: 7z a -t7z -mx9 -bd -y fastfetch-$(./fastfetch --version-raw)-Win32.7z *.dll fastfetch.exe flashfetch.exe presets - name: upload artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: fastfetch-win32 path: ./fastfetch-*-Win32.* @@ -370,7 +370,7 @@ jobs: contents: write steps: - name: download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: get latest release version id: get_version_release @@ -378,11 +378,20 @@ jobs: with: repository: ${{ github.repository }} + - name: generate release-notes + run: | + ls fastfetch-*/* + echo "Please refer to [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/${{ needs.linux.outputs.ffversion }}/CHANGELOG.md#${{ needs.linux.outputs.ffversion }}) for details." > fastfetch-release-notes.md + echo -e "\n---\n\n
SHA256SUMs
\n\n\`\`\`" >> fastfetch-release-notes.md + sha256sum fastfetch-*/* >> fastfetch-release-notes.md + echo -e "\n\`\`\`\n
" >> fastfetch-release-notes.md + - name: create release if: needs.linux.outputs.ffversion != steps.get_version_release.outputs.release uses: ncipollo/release-action@v1 with: tag: ${{ needs.linux.outputs.ffversion }} commit: ${{ github.sha }} + bodyFile: fastfetch-release-notes.md artifactErrorsFailBuild: true - artifacts: fastfetch-linux/*,fastfetch-macos/*,fastfetch-freebsd/*,fastfetch-win64/*,fastfetch-win32/* + artifacts: fastfetch-*/*