Skip to content

Commit a2a0f6c

Browse files
committed
check ref_type and build release artefacts
1 parent 81b7e16 commit a2a0f6c

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

.github/workflows/actions.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
Linux:
77
runs-on: ubuntu-20.04
88
steps:
9-
- name: Creating Release...
9+
- name: Creating contiguous...
1010
uses: ncipollo/release-action@v1
1111
if: github.ref_name == 'master'
1212
with:
@@ -17,6 +17,16 @@ jobs:
1717
prerelease: true
1818
allowUpdates: true
1919
removeArtifacts: true
20+
- name: Creating release...
21+
uses: ncipollo/release-action@v1
22+
if: github.ref_type == 'tag'
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
omitBody: true
26+
omitName: true
27+
allowUpdates: true
28+
removeArtifacts: true
29+
makeLatest: true
2030
- name: Install Dependencies...
2131
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
2232
- name: Checking out sources...
@@ -38,7 +48,7 @@ jobs:
3848
export VERSION=$(git rev-parse --short HEAD)
3949
./linuxdeployqt-continuous-x86_64.AppImage build/appdir/usr/share/applications/*.desktop -bundle-non-qt-libs -appimage
4050
find build/appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
41-
- name: Uploading Artifacts...
51+
- name: Uploading contiguous artifacts...
4252
uses: ncipollo/release-action@v1
4353
if: github.ref_name == 'master'
4454
with:
@@ -48,6 +58,15 @@ jobs:
4858
token: ${{ secrets.GITHUB_TOKEN }}
4959
artifacts: ./Android*.AppImage*
5060
tag: continuous
61+
- name: Uploading release artifacts...
62+
uses: ncipollo/release-action@v1
63+
if: github.ref_type == 'tag'
64+
with:
65+
allowUpdates: true
66+
omitBody: true
67+
omitName: true
68+
token: ${{ secrets.GITHUB_TOKEN }}
69+
artifacts: ./Android*.AppImage*
5170
MacOSX:
5271
runs-on: macos-latest
5372
steps:
@@ -69,7 +88,7 @@ jobs:
6988
git clone https://github.com/andreyvit/create-dmg.git
7089
cd create-dmg
7190
./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
72-
- name: Uploading Artifacts...
91+
- name: Uploading contiguous artifacts...
7392
uses: ncipollo/release-action@v1
7493
if: github.ref_name == 'master'
7594
with:
@@ -79,3 +98,13 @@ jobs:
7998
token: ${{ secrets.GITHUB_TOKEN }}
8099
artifacts: create-dmg/*.dmg
81100
tag: continuous
101+
102+
- name: Uploading contiguous artifacts...
103+
uses: ncipollo/release-action@v1
104+
if: github.ref_type == 'tag'
105+
with:
106+
allowUpdates: true
107+
omitBody: true
108+
omitName: true
109+
token: ${{ secrets.GITHUB_TOKEN }}
110+
artifacts: create-dmg/*.dmg

0 commit comments

Comments
 (0)