Skip to content

Commit

Permalink
Artifacts and build simplifications
Browse files Browse the repository at this point in the history
  • Loading branch information
SneWs committed Feb 9, 2025
1 parent e465a06 commit 0ca48dc
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
mkdir -p ${{ steps.strings.outputs.build-output-dir }}/artifacts 2>/dev/null
chmod +x ./build-deb.sh
./build-deb.sh ${{ steps.strings.outputs.build-output-dir }}
cp ${{ steps.strings.outputs.build-output-dir }}/*.deb ${{ steps.strings.outputs.build-output-dir }}/artifacts
# Create release if it doesn't exist
gh release create latest artifacts/* --title "Dev build artifacts" --prerelease --repo ${{ github.repository }} --notes "Automated Dev Release"
gh release create latest ${{ steps.strings.outputs.build-output-dir }}/*.deb --title "Dev build artifacts" --prerelease --repo ${{ github.repository }} --notes "Automated Dev Release"
# And attach the file
gh release upload latest ${{ steps.strings.outputs.build-output-dir }}/*.deb
Expand Down Expand Up @@ -125,21 +122,21 @@ jobs:
}
# Create release if it doesn't exist
gh release create latest artifacts/* --title "Dev build artifacts" --prerelease --repo ${{ github.repository }} --notes "Automated Dev Release"
gh release create latest "$BUILD_DIR/Tail-Tray.zip" --title "Dev build artifacts" --prerelease --repo ${{ github.repository }} --notes "Automated Dev Release"
# And attach the file
gh release upload latest "$BUILD_DIR/Tail-Tray.zip"
- name: Upload Windows Build Artifact
if: runner.os == 'Windows' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/prod')
uses: actions/upload-artifact@v4
with:
name: Tail-Tray-Windows
path: ${{ steps.strings.outputs.build-output-dir }}/Tail-Tray.zip

- name: Upload Linux Build Artifact
if: runner.os == 'Linux' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/prod')
uses: actions/upload-artifact@v4
with:
name: Tail-Tray-Linux
path: ${{ steps.strings.outputs.build-output-dir }}/*.deb
#- name: Upload Windows Build Artifact
# if: runner.os == 'Windows' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/prod')
# uses: actions/upload-artifact@v4
# with:
# name: Tail-Tray-Windows
# path: ${{ steps.strings.outputs.build-output-dir }}/Tail-Tray.zip
#
#- name: Upload Linux Build Artifact
# if: runner.os == 'Linux' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/prod')
# uses: actions/upload-artifact@v4
# with:
# name: Tail-Tray-Linux
# path: ${{ steps.strings.outputs.build-output-dir }}/tail-tray.deb

0 comments on commit 0ca48dc

Please sign in to comment.