2024-05-05 00:20:10 -05:00
|
|
|
#-------------------------------------------------------------------------------
|
2021-01-11 00:18:30 -05:00
|
|
|
# Workflow configuration
|
2024-05-05 00:20:10 -05:00
|
|
|
#-------------------------------------------------------------------------------
|
2021-01-11 00:18:30 -05:00
|
|
|
|
2021-10-19 22:00:38 -05:00
|
|
|
name: Deploy
|
2021-01-10 22:39:23 -05:00
|
|
|
on:
|
2021-01-11 00:18:30 -05:00
|
|
|
push: # Run on push
|
|
|
|
paths-ignore: # File patterns to ignore
|
|
|
|
- '**.md' # Ignore changes to *.md files
|
2021-02-04 06:42:14 +01:00
|
|
|
|
2021-01-11 00:18:30 -05:00
|
|
|
pull_request: # Run on pull-request
|
|
|
|
paths-ignore: # File-patterns to ignore
|
|
|
|
- '**.md' # Ignore changes to *.md files
|
|
|
|
|
2024-05-05 00:20:10 -05:00
|
|
|
#-------------------------------------------------------------------------------
|
2021-01-11 00:18:30 -05:00
|
|
|
# Define application name & version
|
2024-05-05 00:20:10 -05:00
|
|
|
#-------------------------------------------------------------------------------
|
2021-01-11 00:18:30 -05:00
|
|
|
|
|
|
|
env:
|
2024-05-05 00:37:11 -05:00
|
|
|
VERSION: "2.1.0"
|
2021-01-13 18:57:04 -05:00
|
|
|
EXECUTABLE: "SerialStudio"
|
|
|
|
APPLICATION: "Serial Studio"
|
2021-10-01 00:26:54 -07:00
|
|
|
UNIXNAME: "serial-studio"
|
2021-01-13 18:57:04 -05:00
|
|
|
QMAKE_PROJECT: "Serial-Studio.pro"
|
2021-01-13 21:50:34 -05:00
|
|
|
QML_DIR_NIX: "assets/qml"
|
|
|
|
QML_DIR_WIN: "assets\\qml"
|
2021-10-01 02:56:07 -05:00
|
|
|
PUBLISHER: "Alex Spataru"
|
2022-05-01 20:47:14 -05:00
|
|
|
REPO_DIR: "/home/runner/work/Serial-Studio"
|
2024-05-05 00:20:10 -05:00
|
|
|
QT_VERSION: 6.7.0
|
|
|
|
QT_MODULES: qtserialport qtconnectivity qtpositioning qtlocation
|
2022-05-01 20:11:13 -05:00
|
|
|
QMAKE: qmake6
|
2022-05-01 20:47:14 -05:00
|
|
|
CORES: 16
|
2021-01-11 00:18:30 -05:00
|
|
|
|
2024-05-05 00:20:10 -05:00
|
|
|
#-------------------------------------------------------------------------------
|
2021-01-11 00:18:30 -05:00
|
|
|
# Workflow jobs (GNU/Linux, macOS & Windows)
|
2024-05-05 00:20:10 -05:00
|
|
|
#-------------------------------------------------------------------------------
|
2021-01-11 00:18:30 -05:00
|
|
|
|
2020-12-24 23:29:05 -06:00
|
|
|
jobs:
|
2022-05-01 02:29:38 -05:00
|
|
|
#
|
|
|
|
# GNU/Linux build
|
|
|
|
#
|
2020-12-24 23:34:12 -06:00
|
|
|
build-linux:
|
2022-05-01 20:18:53 -05:00
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
name: '🐧 Ubuntu 20.04'
|
2020-12-24 23:29:05 -06:00
|
|
|
steps:
|
2021-02-04 06:42:14 +01:00
|
|
|
|
|
|
|
- name: '🧰 Checkout'
|
2024-04-01 02:42:21 -05:00
|
|
|
uses: actions/checkout@v4
|
2021-02-04 06:42:14 +01:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: '⚙️ Install Qt'
|
2024-04-01 02:42:21 -05:00
|
|
|
uses: jurplel/install-qt-action@v3
|
2021-02-04 06:42:14 +01:00
|
|
|
with:
|
2021-09-30 19:27:26 -05:00
|
|
|
version: ${{env.QT_VERSION}}
|
2023-01-22 07:44:34 -06:00
|
|
|
modules: ${{env.QT_MODULES}}
|
2024-04-01 02:42:21 -05:00
|
|
|
cache: true
|
|
|
|
install-deps: 'true'
|
2021-02-04 06:42:14 +01:00
|
|
|
|
|
|
|
- name: '⚙️ Install dependencies'
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
2024-05-05 00:20:10 -05:00
|
|
|
sudo apt-get install libgl1-mesa-dev libxkbcommon-x11-0 libxcb-icccm4 \
|
|
|
|
libxcb-image0 libxcb-keysyms1 libxcb-render-util0 \
|
|
|
|
libxcb-xinerama0 libzstd-dev libxcb-image0-dev \
|
|
|
|
libxcb-util0-dev libxcb-cursor-dev
|
2021-02-04 06:42:14 +01:00
|
|
|
|
|
|
|
- name: '🚧 Compile application'
|
|
|
|
run: |
|
2024-05-05 00:20:10 -05:00
|
|
|
${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr
|
|
|
|
make -j${{env.CORES}}
|
2021-02-04 06:42:14 +01:00
|
|
|
|
2022-05-01 20:11:13 -05:00
|
|
|
- name: '⚙️ Install linuxdeploy'
|
2021-02-04 06:42:14 +01:00
|
|
|
run: |
|
2022-05-01 20:27:20 -05:00
|
|
|
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
|
|
|
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
|
|
|
|
chmod +x linuxdeploy-x86_64.AppImage
|
|
|
|
chmod +x linuxdeploy-plugin-qt-x86_64.AppImage
|
|
|
|
|
2021-10-19 20:40:02 -05:00
|
|
|
- name: '📦 Create AppImage'
|
|
|
|
run: |
|
2022-05-01 20:27:20 -05:00
|
|
|
export QML_SOURCES_PATHS="${{env.QML_DIR_NIX}}"
|
2022-05-01 20:35:42 -05:00
|
|
|
export QMAKE=${{env.REPO_DIR}}/Qt/${{env.QT_VERSION}}/gcc_64/bin/${{env.QMAKE}}
|
|
|
|
export PATH=${{env.REPO_DIR}}/Qt/${{env.QT_VERSION}}/gcc_64/libexec:$PATH
|
2022-05-01 20:27:20 -05:00
|
|
|
./linuxdeploy-x86_64.AppImage --appdir AppDir -e ${{env.UNIXNAME}} -i deploy/linux/${{env.UNIXNAME}}.png -d deploy/linux/${{env.UNIXNAME}}.desktop --plugin qt --output appimage
|
|
|
|
rm linuxdeploy-x86_64.AppImage
|
|
|
|
rm linuxdeploy-plugin-qt-x86_64.AppImage
|
|
|
|
mv *.AppImage ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage
|
2023-01-22 07:44:34 -06:00
|
|
|
|
2021-10-19 20:40:02 -05:00
|
|
|
- name: '📤 Upload artifact: AppImage'
|
2024-05-05 00:37:11 -05:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-10-01 02:01:49 -05:00
|
|
|
with:
|
2021-10-19 20:40:02 -05:00
|
|
|
name: ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage
|
|
|
|
path: ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage
|
2021-02-04 06:42:14 +01:00
|
|
|
|
2022-05-01 02:29:38 -05:00
|
|
|
#
|
2021-01-11 00:18:30 -05:00
|
|
|
# macOS build
|
2022-05-01 02:29:38 -05:00
|
|
|
#
|
2020-12-25 21:17:44 -06:00
|
|
|
build-mac:
|
2024-04-01 02:42:21 -05:00
|
|
|
runs-on: macos-latest
|
|
|
|
name: '🍎 macOS'
|
2020-12-25 21:17:44 -06:00
|
|
|
steps:
|
2021-02-04 06:42:14 +01:00
|
|
|
|
|
|
|
- name: '🧰 Checkout'
|
2024-04-01 02:42:21 -05:00
|
|
|
uses: actions/checkout@v4
|
2021-02-04 06:42:14 +01:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: '⚙️ Install Qt'
|
2024-04-01 02:42:21 -05:00
|
|
|
uses: jurplel/install-qt-action@v3
|
2021-02-04 06:42:14 +01:00
|
|
|
with:
|
2021-09-30 19:27:26 -05:00
|
|
|
version: ${{env.QT_VERSION}}
|
2023-01-22 07:44:34 -06:00
|
|
|
modules: ${{env.QT_MODULES}}
|
2024-04-01 02:42:21 -05:00
|
|
|
cache: true
|
2024-05-05 00:20:10 -05:00
|
|
|
arch: clang_64
|
2024-04-01 02:42:21 -05:00
|
|
|
install-deps: 'true'
|
2021-02-04 06:42:14 +01:00
|
|
|
|
2024-05-05 00:20:10 -05:00
|
|
|
- name: '⚙️ Install Node'
|
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: 20
|
|
|
|
|
2021-02-04 06:42:14 +01:00
|
|
|
- name: '🚧 Compile application'
|
|
|
|
run: |
|
2024-05-05 00:20:10 -05:00
|
|
|
${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release
|
|
|
|
make -j${{env.CORES}}
|
2021-02-04 06:42:14 +01:00
|
|
|
|
2024-05-05 00:20:10 -05:00
|
|
|
- name: '📦 Package application'
|
2021-02-04 06:42:14 +01:00
|
|
|
run: |
|
|
|
|
macdeployqt ${{env.EXECUTABLE}}.app -qmldir="${{env.QML_DIR_NIX}}"
|
|
|
|
mv "${{env.EXECUTABLE}}.app" "${{env.APPLICATION}}.app"
|
|
|
|
|
2024-05-05 00:20:10 -05:00
|
|
|
- name: '🪪 Import Code Signing Certificate'
|
|
|
|
uses: apple-actions/import-codesign-certs@v2
|
2021-02-04 06:42:14 +01:00
|
|
|
with:
|
2024-05-05 00:20:10 -05:00
|
|
|
p12-file-base64: ${{secrets.CERTIFICATES_P12}}
|
|
|
|
p12-password: ${{secrets.CERTIFICATES_P12_PASSWORD}}
|
|
|
|
|
|
|
|
- name: '✍🏻 Sign Application'
|
|
|
|
run: codesign --force --deep --options runtime --sign "${{secrets.DEVELOPER_ID}}" "${{env.APPLICATION}}.app"
|
|
|
|
|
|
|
|
- name: '💽 Create nice DMG'
|
|
|
|
run: |
|
|
|
|
npm install --global create-dmg
|
|
|
|
rm LICENSE.md
|
|
|
|
create-dmg "${{env.APPLICATION}}.app" --dmg-title="${{env.APPLICATION}}"
|
|
|
|
mv "${{env.APPLICATION}} ${{env.VERSION}}.dmg" "${{env.EXECUTABLE}}-${{env.VERSION}}-macOS.dmg"
|
|
|
|
|
|
|
|
- name: '📋 Notarize'
|
|
|
|
uses: alex-spataru/xcode-notarize@v2
|
|
|
|
with:
|
|
|
|
product-path: ${{env.EXECUTABLE}}-${{env.VERSION}}-macOS.dmg
|
|
|
|
appstore-connect-username: ${{secrets.NOTARIZATION_USERNAME}}
|
|
|
|
appstore-connect-teamid: ${{secrets.NOTARIZATION_TEAMID}}
|
|
|
|
appstore-connect-password: ${{secrets.NOTARIZATION_PASSWORD}}
|
|
|
|
|
|
|
|
- name: '📌 Staple'
|
|
|
|
uses: BoundfoxStudios/action-xcode-staple@v1
|
|
|
|
with:
|
|
|
|
product-path: ${{env.EXECUTABLE}}-${{env.VERSION}}-macOS.dmg
|
|
|
|
|
|
|
|
- name: '📤 Upload artifact: DMG'
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: ${{env.EXECUTABLE}}-${{env.VERSION}}-macOS.dmg
|
|
|
|
path: ${{env.EXECUTABLE}}-${{env.VERSION}}-macOS.dmg
|
2021-02-04 06:42:14 +01:00
|
|
|
|
2022-05-01 02:29:38 -05:00
|
|
|
#
|
2021-01-13 16:31:49 -05:00
|
|
|
# Windows build
|
2022-05-01 02:29:38 -05:00
|
|
|
#
|
2021-01-13 16:31:49 -05:00
|
|
|
build-windows:
|
2024-04-01 02:42:21 -05:00
|
|
|
runs-on: windows-latest
|
|
|
|
name: '🧊 Windows'
|
2021-01-13 16:31:49 -05:00
|
|
|
steps:
|
2021-02-04 06:42:14 +01:00
|
|
|
|
|
|
|
- name: '🧰 Checkout'
|
2024-04-01 02:42:21 -05:00
|
|
|
uses: actions/checkout@v4
|
2021-02-04 06:42:14 +01:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: '⚙️ Configure MSVC'
|
|
|
|
uses: ilammy/msvc-dev-cmd@v1
|
|
|
|
with:
|
|
|
|
arch: x64
|
|
|
|
spectre: true
|
|
|
|
|
|
|
|
- name: '⚙️ Install Qt'
|
2024-04-01 02:42:21 -05:00
|
|
|
uses: jurplel/install-qt-action@v3
|
2021-02-04 06:42:14 +01:00
|
|
|
with:
|
2021-09-30 19:27:26 -05:00
|
|
|
version: ${{env.QT_VERSION}}
|
2023-01-22 07:44:34 -06:00
|
|
|
modules: ${{env.QT_MODULES}}
|
2024-04-01 02:42:21 -05:00
|
|
|
cache: true
|
|
|
|
install-deps: 'true'
|
2021-02-04 06:42:14 +01:00
|
|
|
|
|
|
|
- name: '🚧 Compile application'
|
|
|
|
run: |
|
2021-12-08 02:50:37 -06:00
|
|
|
${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr
|
2021-02-04 06:42:14 +01:00
|
|
|
nmake
|
|
|
|
|
|
|
|
- name: '📦 Package application (windeployqt)'
|
|
|
|
run: |
|
|
|
|
mkdir bin
|
|
|
|
move release/${{env.EXECUTABLE}}.exe bin
|
|
|
|
windeployqt bin/${{env.EXECUTABLE}}.exe -qmldir="${{env.QML_DIR_WIN}}" --compiler-runtime
|
|
|
|
mkdir "${{env.APPLICATION}}"
|
|
|
|
move bin "${{env.APPLICATION}}"
|
|
|
|
xcopy deploy\windows\resources\icon.ico "${{env.APPLICATION}}"
|
2022-05-01 02:29:38 -05:00
|
|
|
move "${{env.APPLICATION}}" deploy\windows\nsis\
|
2021-02-04 06:42:14 +01:00
|
|
|
|
2022-09-11 17:49:59 +08:00
|
|
|
- name: '📦 Portable application'
|
|
|
|
run: |
|
|
|
|
mkdir "${{env.EXECUTABLE}}-${{env.VERSION}}-Windows"
|
|
|
|
xcopy "deploy\windows\nsis\${{env.APPLICATION}}\icon.ico" "${{env.EXECUTABLE}}-${{env.VERSION}}-Windows"
|
|
|
|
xcopy "deploy\windows\nsis\${{env.APPLICATION}}\bin" "${{env.EXECUTABLE}}-${{env.VERSION}}-Windows" /E
|
|
|
|
Compress-Archive -Path "${{env.EXECUTABLE}}-${{env.VERSION}}-Windows" -DestinationPath "${{env.EXECUTABLE}}-${{env.VERSION}}-Windows.zip"
|
|
|
|
|
2021-02-04 06:42:14 +01:00
|
|
|
- name: '📦 Make NSIS installer'
|
2024-05-05 00:37:11 -05:00
|
|
|
uses: joncloud/makensis-action@v4.1
|
2022-05-01 02:29:38 -05:00
|
|
|
with:
|
|
|
|
script-file: deploy/windows/nsis/setup.nsi
|
2023-01-22 07:44:34 -06:00
|
|
|
|
2022-05-26 14:38:51 -05:00
|
|
|
- name: '📦 Check NSIS version & hash'
|
|
|
|
run: |
|
|
|
|
makensis /HDRINFO
|
2022-05-01 02:29:38 -05:00
|
|
|
|
|
|
|
- name: '📦 Rename installer'
|
2021-02-04 06:42:14 +01:00
|
|
|
run: |
|
2022-05-01 02:29:38 -05:00
|
|
|
dir
|
|
|
|
cd deploy/windows/nsis/
|
|
|
|
dir
|
2021-02-04 06:42:14 +01:00
|
|
|
ren *.exe ${{env.EXECUTABLE}}-${{env.VERSION}}-Windows.exe
|
|
|
|
|
|
|
|
- name: '📤 Upload artifact: NSIS installer'
|
2024-05-05 00:37:11 -05:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-02-04 06:42:14 +01:00
|
|
|
with:
|
|
|
|
name: ${{env.EXECUTABLE}}-${{env.VERSION}}-Windows.exe
|
|
|
|
path: deploy/windows/nsis/${{env.EXECUTABLE}}-${{env.VERSION}}-Windows.exe
|
2021-01-18 19:59:39 +01:00
|
|
|
|
2022-09-11 17:49:59 +08:00
|
|
|
- name: '📤 Upload artifact: Portable application'
|
2024-05-05 00:37:11 -05:00
|
|
|
uses: actions/upload-artifact@v4
|
2022-09-11 17:49:59 +08:00
|
|
|
with:
|
|
|
|
name: ${{env.EXECUTABLE}}-${{env.VERSION}}-Windows.zip
|
|
|
|
path: ${{env.EXECUTABLE}}-${{env.VERSION}}-Windows.zip
|
|
|
|
|
2022-05-01 02:29:38 -05:00
|
|
|
#
|
2021-01-18 19:59:39 +01:00
|
|
|
# Windows MSYS2 build
|
2022-05-01 02:29:38 -05:00
|
|
|
#
|
2021-01-18 19:59:39 +01:00
|
|
|
msys2-makepkg:
|
2021-12-16 15:28:56 -05:00
|
|
|
if: ${{false}}
|
2021-01-18 19:59:39 +01:00
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- { icon: '🟪', msystem: MINGW64, arch: x86_64 }
|
|
|
|
- { icon: '🟦', msystem: MINGW32, arch: i686 }
|
|
|
|
name: ${{ matrix.icon }} ${{ matrix.msystem }} | ${{ matrix.arch }} | makepkg
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: msys2 {0}
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- run: git config --global core.autocrlf input
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: '🧰 Checkout'
|
2024-05-05 00:37:11 -05:00
|
|
|
uses: actions/checkout@v4
|
2021-01-18 19:59:39 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: '${{ matrix.icon }} Setup MSYS2'
|
|
|
|
uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
msystem: ${{ matrix.msystem }}
|
|
|
|
update: true
|
|
|
|
install: >
|
|
|
|
base-devel
|
|
|
|
mingw-w64-${{ matrix.arch }}-toolchain
|
|
|
|
|
|
|
|
- name: '🚧 Build'
|
|
|
|
run: |
|
|
|
|
cd msys2
|
2021-02-14 22:37:24 +01:00
|
|
|
tries=0
|
|
|
|
# Try building three times due to the arbitrary 'Bad address' error
|
|
|
|
while [ $tries -lt 3 ]; do
|
|
|
|
makepkg-mingw --noconfirm --noprogressbar -sCLf && break || tries=$((tries+1))
|
|
|
|
done
|
|
|
|
|
2021-01-18 19:59:39 +01:00
|
|
|
env:
|
|
|
|
MINGW_INSTALLS: ${{ matrix.msystem }}
|
|
|
|
|
|
|
|
- name: '📤 Upload artifact: MSYS2 ${{ matrix.arch }} package'
|
2024-05-05 00:37:11 -05:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-01-18 19:59:39 +01:00
|
|
|
with:
|
|
|
|
name: msys2-pkgs
|
|
|
|
path: msys2/*.zst
|
|
|
|
|
2024-05-05 00:20:10 -05:00
|
|
|
#
|
2021-01-18 19:59:39 +01:00
|
|
|
# Test Windows MSYS2 packages
|
2024-05-05 00:20:10 -05:00
|
|
|
#
|
2021-01-18 19:59:39 +01:00
|
|
|
msys2-test:
|
2021-12-16 15:28:56 -05:00
|
|
|
if: ${{false}}
|
2021-01-18 19:59:39 +01:00
|
|
|
needs: msys2-makepkg
|
|
|
|
runs-on: windows-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- { icon: '🟪', msystem: MINGW64, arch: x86_64 }
|
|
|
|
- { icon: '🟦', msystem: MINGW32, arch: i686 }
|
|
|
|
name: ${{ matrix.icon }} ${{ matrix.msystem }} | ${{ matrix.arch }} | Test
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: msys2 {0}
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: '${{ matrix.icon }} Setup MSYS2'
|
|
|
|
uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
msystem: ${{ matrix.msystem }}
|
|
|
|
update: true
|
|
|
|
install: >
|
|
|
|
tree
|
|
|
|
tar
|
|
|
|
zstd
|
|
|
|
|
|
|
|
- name: '📥 Download artifacts: MSYS2 packages'
|
|
|
|
uses: actions/download-artifact@v2
|
|
|
|
with:
|
|
|
|
name: msys2-pkgs
|
|
|
|
|
|
|
|
- name: 'Install MSYS2 package'
|
|
|
|
run: |
|
|
|
|
pacman -U --noconfirm --noprogressbar *${{ matrix.arch }}*.zst
|
|
|
|
|
|
|
|
- name: 'List contents of package'
|
|
|
|
run: |
|
|
|
|
mkdir tmp
|
|
|
|
cd tmp
|
|
|
|
/usr/bin/tar xf ../*${{ matrix.arch }}*.zst
|
|
|
|
tree ${{ matrix.msystem }}
|
2023-01-22 07:44:34 -06:00
|
|
|
|
2022-05-01 02:29:38 -05:00
|
|
|
#
|
2021-10-27 21:02:40 -05:00
|
|
|
# Upload continuous build
|
2022-05-01 02:29:38 -05:00
|
|
|
#
|
2021-10-20 06:00:56 -05:00
|
|
|
upload:
|
|
|
|
name: '🗂 Create release and upload artifacts'
|
|
|
|
needs:
|
|
|
|
- build-linux
|
|
|
|
- build-mac
|
|
|
|
- build-windows
|
2023-01-22 05:56:09 -06:00
|
|
|
runs-on: ubuntu-20.04
|
2021-10-20 06:00:56 -05:00
|
|
|
steps:
|
|
|
|
- name: '📥 Download artifacts'
|
|
|
|
uses: actions/download-artifact@v2
|
2021-10-20 06:19:15 -05:00
|
|
|
- name: '🗂 Inspect directory after downloading artifacts'
|
|
|
|
run: ls -alFR
|
2021-10-20 06:00:56 -05:00
|
|
|
- name: '🚀 Create release and upload artifacts'
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: |
|
|
|
|
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
|
|
|
|
chmod +x pyuploadtool-x86_64.AppImage
|
2021-10-20 06:41:06 -05:00
|
|
|
./pyuploadtool-x86_64.AppImage **/${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage
|
2024-05-05 00:20:10 -05:00
|
|
|
./pyuploadtool-x86_64.AppImage **/${{env.EXECUTABLE}}-${{env.VERSION}}-macOS.dmg
|
2021-10-20 06:41:06 -05:00
|
|
|
./pyuploadtool-x86_64.AppImage **/${{env.EXECUTABLE}}-${{env.VERSION}}-Windows.exe
|
2022-09-11 17:49:59 +08:00
|
|
|
./pyuploadtool-x86_64.AppImage **/${{env.EXECUTABLE}}-${{env.VERSION}}-Windows.zip
|