aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-06-29 11:55:16 -0700
committerGitHub <noreply@github.com>2022-06-29 11:55:16 -0700
commit8921fc12ea0590c290f3780fa20df7176b8c0000 (patch)
tree2a088f9242fae3b466b258485d5e391b53f5a10d
parentedb8c63afb4d13158ec855b704f94a3e118d20f9 (diff)
downloadtrackermap-server-8921fc12ea0590c290f3780fa20df7176b8c0000.tar.gz
trackermap-server-8921fc12ea0590c290f3780fa20df7176b8c0000.tar.bz2
trackermap-server-8921fc12ea0590c290f3780fa20df7176b8c0000.zip
Implement builds upload
-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"