|
|
|
@ -1,6 +1,12 @@
@@ -1,6 +1,12 @@
|
|
|
|
|
name: Compile, Test and Release |
|
|
|
|
|
|
|
|
|
on: [ push, pull_request ] |
|
|
|
|
on: |
|
|
|
|
push: |
|
|
|
|
branches: |
|
|
|
|
- 'master' |
|
|
|
|
pull_request: |
|
|
|
|
branches: |
|
|
|
|
- '*' |
|
|
|
|
|
|
|
|
|
defaults: |
|
|
|
|
run: |
|
|
|
@ -146,12 +152,6 @@ jobs:
@@ -146,12 +152,6 @@ jobs:
|
|
|
|
|
working-directory: ${{ runner.temp }}/shadow_build_dir |
|
|
|
|
run: ${SOURCE_DIR}/deploy/create_linux_appimage.sh ${SOURCE_DIR} ./staging ./package; |
|
|
|
|
|
|
|
|
|
- name: Save artifact |
|
|
|
|
if: ${{ matrix.config.save-artifact }} |
|
|
|
|
uses: actions/upload-artifact@master |
|
|
|
|
with: |
|
|
|
|
name: ${{ matrix.config.artifact }} |
|
|
|
|
path: ${{ runner.temp }}/shadow_build_dir/package/${{ matrix.config.artifact }} |
|
|
|
|
|
|
|
|
|
- name: Upload artifact to S3 Bucket |
|
|
|
|
if: ${{ matrix.config.save-artifact && github.event_name == 'push' }} |
|
|
|
@ -159,10 +159,16 @@ jobs:
@@ -159,10 +159,16 @@ jobs:
|
|
|
|
|
with: |
|
|
|
|
args: --acl public-read |
|
|
|
|
env: |
|
|
|
|
AWS_S3_BUCKET: qgroundcontrol |
|
|
|
|
AWS_S3_BUCKET: 'qgroundcontrol' |
|
|
|
|
AWS_REGION: 'us-west-1' |
|
|
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} |
|
|
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
|
|
|
|
SOURCE_DIR: ${{ runner.temp }}/shadow_build_dir/package/${{ matrix.config.artifact }} |
|
|
|
|
SOURCE_DIR: '${{ runner.temp }}/shadow_build_dir/package/${{ matrix.config.artifact }}' |
|
|
|
|
LOCAL_DIR: 'master' |
|
|
|
|
|
|
|
|
|
- name: Save artifact |
|
|
|
|
if: ${{ matrix.config.save-artifact }} |
|
|
|
|
uses: actions/upload-artifact@master |
|
|
|
|
with: |
|
|
|
|
name: ${{ matrix.config.artifact }} |
|
|
|
|
path: ${{ runner.temp }}/shadow_build_dir/package/${{ matrix.config.artifact }} |
|
|
|
|