🔖 chore: bump version to 0.0.3 #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| tags: ["v*"] | |
| permissions: | |
| contents: write | |
| jobs: | |
| release: | |
| runs-on: macos-26 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate changelog | |
| uses: orhun/git-cliff-action@v4 | |
| id: changelog | |
| with: | |
| args: --latest --strip header | |
| - name: Inject version from tag | |
| run: | | |
| VERSION="${GITHUB_REF_NAME#v}" | |
| plutil -replace CFBundleShortVersionString -string "$VERSION" Resources/Info.plist | |
| plutil -replace CFBundleVersion -string "$VERSION" Resources/Info.plist | |
| - name: Build release binary | |
| run: swift build -c release | |
| - name: Generate app icon | |
| run: swift Scripts/generate-icon.swift | |
| - name: Assemble .app bundle | |
| run: | | |
| APP="CloudDrop.app" | |
| mkdir -p "$APP/Contents/MacOS" | |
| mkdir -p "$APP/Contents/Resources" | |
| cp .build/release/CloudDrop "$APP/Contents/MacOS/CloudDrop" | |
| cp Resources/Info.plist "$APP/Contents/" | |
| cp Resources/AppIcon.icns "$APP/Contents/Resources/" | |
| codesign --force --sign - --entitlements Resources/CloudDrop.entitlements "$APP" | |
| - name: Create zip | |
| run: ditto -c -k --keepParent CloudDrop.app CloudDrop.app.zip | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: ${{ github.ref_name }} | |
| body: ${{ steps.changelog.outputs.content }} | |
| files: CloudDrop.app.zip |