Skip to content

Commit

Permalink
fix(release) : Update release template with semantic versioning format
Browse files Browse the repository at this point in the history
  • Loading branch information
fal3n-4ngel committed Dec 30, 2024
1 parent 4f5bcef commit e59ba4c
Showing 1 changed file with 61 additions and 42 deletions.
103 changes: 61 additions & 42 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ jobs:
- name: Install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libjavascriptcoregtk-4.1-dev
- name: Install dependencies (mac only)
if: matrix.platform == 'macos-latest'
run: |
brew install gtk+3 webkitgtk librsvg
brew install gtk+3 librsvg
- name: Setup Node
uses: actions/setup-node@v4
Expand Down Expand Up @@ -81,49 +81,68 @@ jobs:
CI: true
NODE_ENV: production

- name: Build Tauri
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_ENV: production
with:
tagName: ${{ github.ref_name }}
releaseName: 'Dash Desktop ${{ github.ref_name }}'
releaseBody: |
## Dash Desktop ${{ github.ref_name }}
🚀 Latest Release
- name: Generate Release Notes
id: release_notes
run: |
# Get all commits since last tag
COMMITS=$(git log $(git describe --tags --abbrev=0 HEAD^)..HEAD --pretty=format:"%s")
### Features
- Cross-platform desktop application
- Real-time Firebase integration
- Task management system
- Network node status monitoring
# Initialize categories
FEATURES=""
FIXES=""
PERFORMANCE=""
### Download Options
Choose the appropriate version for your operating system:
- Windows: `.msi` installer
- macOS: `.dmg` installer
- Linux: `.deb` package and `.AppImage`
# Parse commits and categorize
while IFS= read -r commit; do
if [[ $commit == feat* ]]; then
FEATURES="$FEATURES* ${commit#feat*: }\n"
elif [[ $commit == fix* ]]; then
FIXES="$FIXES* ${commit#fix*: }\n"
elif [[ $commit == perf* ]]; then
PERFORMANCE="$PERFORMANCE* ${commit#perf*: }\n"
fi
done <<< "$COMMITS"
### System Requirements
- Windows 10 or later
- macOS 10.15 or later
- Ubuntu 20.04 or compatible Linux distribution
# Create release notes
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
echo "# ${{ github.ref_name }}" >> $GITHUB_ENV
echo "\`${{ github.sha }}\`" >> $GITHUB_ENV
echo "" >> $GITHUB_ENV
### Installation
1. Download the appropriate file for your OS
2. Run the installer
3. Follow the on-screen instructions
if [ ! -z "$FEATURES" ]; then
echo "## New Features" >> $GITHUB_ENV
echo -e "$FEATURES" >> $GITHUB_ENV
fi
### Known Issues
- Please report any issues on the GitHub repository
if [ ! -z "$FIXES" ]; then
echo "## Bug Fixes" >> $GITHUB_ENV
echo -e "$FIXES" >> $GITHUB_ENV
fi
### Support
If you encounter any problems, please open an issue on GitHub.
if [ ! -z "$PERFORMANCE" ]; then
echo "## Performance" >> $GITHUB_ENV
echo -e "$PERFORMANCE" >> $GITHUB_ENV
fi
---
🔄 Release Date: ${{ github.event.repository.updated_at }}
👤 Build Triggered By: ${{ github.actor }}
releaseDraft: false
prerelease: false
echo "" >> $GITHUB_ENV
echo "## Installation" >> $GITHUB_ENV
echo "Download the appropriate version for your operating system:" >> $GITHUB_ENV
echo "- Windows: \`.msi\` installer" >> $GITHUB_ENV
echo "- macOS: \`.dmg\` installer" >> $GITHUB_ENV
echo "- Linux: \`.deb\` package and \`.AppImage\`" >> $GITHUB_ENV
echo "" >> $GITHUB_ENV
echo "**Full Changelog**: ${{ github.event.repository.html_url }}/compare/${{ github.event.before }}...${{ github.ref_name }}" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV

- name: Build Tauri
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_ENV: production
with:
tagName: ${{ github.ref_name }}
releaseName: 'Dash Desktop ${{ github.ref_name }}'
releaseBody: ${{ env.RELEASE_NOTES }}
releaseDraft: false
prerelease: false

0 comments on commit e59ba4c

Please sign in to comment.