mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-21 13:14:04 +02:00
chore(actions): release body
This commit is contained in:
parent
93918c4749
commit
5addcef5a7
1 changed files with 30 additions and 15 deletions
45
.github/workflows/release.yml
vendored
45
.github/workflows/release.yml
vendored
|
@ -16,7 +16,7 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Get version
|
- name: Get version
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo "VERSION=$(node -p "require('./src-tauri/tauri.conf.json').version")" >> $GITHUB_OUTPUT
|
run: echo "VERSION=$(node -p \"require('./src-tauri/tauri.conf.json').version\")" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build-macos:
|
build-macos:
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
|
@ -85,14 +85,12 @@ jobs:
|
||||||
- name: Rename macOS Artifacts
|
- name: Rename macOS Artifacts
|
||||||
run: |
|
run: |
|
||||||
mv src-tauri/target/${{ matrix.args == '--target aarch64-apple-darwin' && 'aarch64-apple-darwin' || 'x86_64-apple-darwin' }}/release/bundle/dmg/*.dmg src-tauri/target/${{ matrix.args == '--target aarch64-apple-darwin' && 'aarch64-apple-darwin' || 'x86_64-apple-darwin' }}/release/bundle/dmg/Qopy-${{ needs.prepare.outputs.version }}_${{ matrix.arch }}.dmg
|
mv src-tauri/target/${{ matrix.args == '--target aarch64-apple-darwin' && 'aarch64-apple-darwin' || 'x86_64-apple-darwin' }}/release/bundle/dmg/*.dmg src-tauri/target/${{ matrix.args == '--target aarch64-apple-darwin' && 'aarch64-apple-darwin' || 'x86_64-apple-darwin' }}/release/bundle/dmg/Qopy-${{ needs.prepare.outputs.version }}_${{ matrix.arch }}.dmg
|
||||||
mv src-tauri/target/${{ matrix.args == '--target aarch64-apple-darwin' && 'aarch64-apple-darwin' || 'x86_64-apple-darwin' }}/release/bundle/macos/*.app.tar.gz src-tauri/target/${{ matrix.args == '--target aarch64-apple-darwin' && 'aarch64-apple-darwin' || 'x86_64-apple-darwin' }}/release/bundle/macos/Qopy-${{ needs.prepare.outputs.version }}_${{ matrix.arch }}.app.tar.gz
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos-${{ matrix.arch }}-binaries
|
name: macos-${{ matrix.arch }}-binaries
|
||||||
path: |
|
path: |
|
||||||
src-tauri/target/**/release/bundle/dmg/*.dmg
|
src-tauri/target/**/release/bundle/dmg/*.dmg
|
||||||
src-tauri/target/**/release/bundle/macos/*.app.tar.gz
|
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
|
@ -235,13 +233,35 @@ jobs:
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: artifacts
|
path: artifacts
|
||||||
- name: Generate Changelog
|
- name: Generate Release Body
|
||||||
id: changelog
|
id: release_body
|
||||||
run: |
|
run: |
|
||||||
CHANGELOG=$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"- %s")
|
VERSION=${{ needs.prepare.outputs.version }}
|
||||||
echo "CHANGELOG<<EOF" >> $GITHUB_ENV
|
CHANGES=$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"- %s")
|
||||||
echo "$CHANGELOG" >> $GITHUB_ENV
|
|
||||||
echo "EOF" >> $GITHUB_ENV
|
# Calculate SHA256 hashes for each artifact
|
||||||
|
WINDOWS_HASH=$(sha256sum artifacts/windows-x64-binaries/Qopy-$VERSION_x64.msi | awk '{ print $1 }')
|
||||||
|
MAC_SILICON_HASH=$(sha256sum artifacts/macos-silicon-binaries/Qopy-$VERSION_silicon.dmg | awk '{ print $1 }')
|
||||||
|
MAC_INTEL_HASH=$(sha256sum artifacts/macos-intel-binaries/Qopy-$VERSION_intel.dmg | awk '{ print $1 }')
|
||||||
|
DEBIAN_HASH=$(sha256sum artifacts/linux-binaries/Qopy-$VERSION_amd64.deb | awk '{ print $1 }')
|
||||||
|
APPIMAGE_HASH=$(sha256sum artifacts/linux-binaries/Qopy-$VERSION_amd64.AppImage | awk '{ print $1 }')
|
||||||
|
REDHAT_HASH=$(sha256sum artifacts/linux-binaries/Qopy-$VERSION_amd64.rpm | awk '{ print $1 }')
|
||||||
|
|
||||||
|
## ♻️ Changelog
|
||||||
|
|
||||||
|
$CHANGES
|
||||||
|
|
||||||
|
⬇️ Downloads
|
||||||
|
|
||||||
|
- [Windows (x64)](https://github.com/${{ github.repository }}/releases/download/v${{ needs.prepare.outputs.version }}/Qopy-${{ needs.prepare.outputs.version }}_x64.msi) - $WINDOWS_HASH
|
||||||
|
- [Windows (ARM64)](https://github.com/${{ github.repository }}/releases/download/v${{ needs.prepare.outputs.version }}/Qopy-${{ needs.prepare.outputs.version }}_arm64.msi) - $WINDOWS_HASH
|
||||||
|
- [macOS (Silicon)](https://github.com/${{ github.repository }}/releases/download/v${{ needs.prepare.outputs.version }}/Qopy-${{ needs.prepare.outputs.version }}_silicon.dmg) - $MAC_SILICON_HASH
|
||||||
|
- [macOS (Intel)](https://github.com/${{ github.repository }}/releases/download/v${{ needs.prepare.outputs.version }}/Qopy-${{ needs.prepare.outputs.version }}_intel.dmg) - $MAC_INTEL_HASH
|
||||||
|
- [Debian](https://github.com/${{ github.repository }}/releases/download/v${{ needs.prepare.outputs.version }}/Qopy-${{ needs.prepare.outputs.version }}_amd64.deb) - $DEBIAN_HASH
|
||||||
|
- [AppImage](https://github.com/${{ github.repository }}/releases/download/v${{ needs.prepare.outputs.version }}/Qopy-${{ needs.prepare.outputs.version }}_amd64.AppImage) - $APPIMAGE_HASH
|
||||||
|
- [Red Hat](https://github.com/${{ github.repository }}/releases/download/v${{ needs.prepare.outputs.version }}/Qopy-${{ needs.prepare.outputs.version }}_amd64.rpm) - $REDHAT_HASH"
|
||||||
|
|
||||||
|
echo "RELEASE_BODY=$RELEASE_BODY" >> $GITHUB_ENV
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
env:
|
env:
|
||||||
|
@ -252,13 +272,8 @@ jobs:
|
||||||
name: v${{ needs.prepare.outputs.version }}
|
name: v${{ needs.prepare.outputs.version }}
|
||||||
files: |
|
files: |
|
||||||
artifacts/**/*.dmg
|
artifacts/**/*.dmg
|
||||||
artifacts/**/*.app.tar.gz
|
|
||||||
artifacts/**/*.msi
|
artifacts/**/*.msi
|
||||||
artifacts/**/*.deb
|
artifacts/**/*.deb
|
||||||
artifacts/**/*.AppImage
|
artifacts/**/*.AppImage
|
||||||
artifacts/**/*.rpm
|
artifacts/**/*.rpm
|
||||||
body: |
|
body: ${{ env.RELEASE_BODY }}
|
||||||
## Changelog
|
|
||||||
${{ env.CHANGELOG }}
|
|
||||||
|
|
||||||
See the assets to download this version and install.
|
|
Loading…
Add table
Add a link
Reference in a new issue