Skip to content

Commit

Permalink
check ref_type and build release artefacts
Browse files Browse the repository at this point in the history
  • Loading branch information
whoozle committed Dec 12, 2023
1 parent 81b7e16 commit a2a0f6c
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions .github/workflows/actions.yml
Expand Up @@ -6,7 +6,7 @@ jobs:
Linux:
runs-on: ubuntu-20.04
steps:
- name: Creating Release...
- name: Creating contiguous...
uses: ncipollo/release-action@v1
if: github.ref_name == 'master'
with:
Expand All @@ -17,6 +17,16 @@ jobs:
prerelease: true
allowUpdates: true
removeArtifacts: true
- name: Creating release...
uses: ncipollo/release-action@v1
if: github.ref_type == 'tag'
with:
token: ${{ secrets.GITHUB_TOKEN }}
omitBody: true
omitName: true
allowUpdates: true
removeArtifacts: true
makeLatest: true
- name: Install Dependencies...
run: sudo apt-get -y install qt5-default qttools5-dev qttools5-dev-tools libgtk2.0-dev libfuse-dev libmagic-dev libtag1-dev libssl-dev ninja-build cmake
- name: Checking out sources...
Expand All @@ -38,7 +48,7 @@ jobs:
export VERSION=$(git rev-parse --short HEAD)
./linuxdeployqt-continuous-x86_64.AppImage build/appdir/usr/share/applications/*.desktop -bundle-non-qt-libs -appimage
find build/appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
- name: Uploading Artifacts...
- name: Uploading contiguous artifacts...
uses: ncipollo/release-action@v1
if: github.ref_name == 'master'
with:
Expand All @@ -48,6 +58,15 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: ./Android*.AppImage*
tag: continuous
- name: Uploading release artifacts...
uses: ncipollo/release-action@v1
if: github.ref_type == 'tag'
with:
allowUpdates: true
omitBody: true
omitName: true
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: ./Android*.AppImage*
MacOSX:
runs-on: macos-latest
steps:
Expand All @@ -69,7 +88,7 @@ jobs:
git clone https://github.com/andreyvit/create-dmg.git
cd create-dmg
./create-dmg --volicon "../osx/android-file-transfer.icns" --icon-size 96 --icon "Android File Transfer for Linux" 110 100 --app-drop-link 380 100 AndroidFileTransferForLinux.dmg ../appdir/Android\ File\ Transfer\ for\ Linux.app
- name: Uploading Artifacts...
- name: Uploading contiguous artifacts...
uses: ncipollo/release-action@v1
if: github.ref_name == 'master'
with:
Expand All @@ -79,3 +98,13 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: create-dmg/*.dmg
tag: continuous

- name: Uploading contiguous artifacts...
uses: ncipollo/release-action@v1
if: github.ref_type == 'tag'
with:
allowUpdates: true
omitBody: true
omitName: true
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: create-dmg/*.dmg

0 comments on commit a2a0f6c

Please sign in to comment.