aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 6a41bddcf..0b6f1baab 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -6,7 +6,7 @@ on:
version:
description: 'Version'
required: true
- default: 'master'
+ default: 'preview'
jobs:
build:
@@ -41,7 +41,7 @@ jobs:
- run: |
sudo dpkg --add-architecture i386
sudo apt-get update
- sudo apt-get install innoextract makeself wine32
+ sudo apt-get install innoextract makeself wine32 s3cmd
- name: Build installers
working-directory: ./setup
run: |
@@ -50,3 +50,9 @@ jobs:
wget -q https://github.com/ojdkbuild/contrib_jdk11u-ci/releases/download/jdk-11.0.13%2B8/jdk-11.0.13-ojdkbuild-linux-x64.zip
wget -q https://github.com/ojdkbuild/contrib_jdk11u-arm32-ci/releases/download/jdk-11.0.13%2B8/jdk-11.0.13-ojdkbuild-linux-armhf.zip
./package.sh ${{ github.event.inputs.version }}
+ - name: Upload installers
+ working-directory: ./setup
+ env:
+ S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
+ S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
+ run: s3cmd put traccar-*.zip s3://traccar/builds/ --host=nyc3.digitaloceanspaces.com --host-bucket=traccar --access_key="$S3_ACCESS_KEY" --secret_key="$S3_SECRET_KEY"