Skip to content

Commit aa02b6c

Browse files
committed
Update S3 bucket for Linux Build Deploy action
1 parent 4e82ef1 commit aa02b6c

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/linux_build_deploy.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
name: Build GUI for Linux
22

33
on:
4-
workflow_dispatch:
4+
workflow_dispatch:
55
pull_request:
66
branches: [master, development]
77
push:
88
branches: [master, development]
9-
9+
1010
permissions:
1111
id-token: write
1212
contents: read
1313

1414
env:
15-
AWS_REGION : us-east-1
15+
AWS_REGION: us-east-1
1616

1717
jobs:
1818
build:
@@ -28,10 +28,10 @@ jobs:
2828
with:
2929
python-version: '3.9'
3030
cache: 'pip'
31-
31+
3232
- name: Install Python Dependencies
3333
run: pip install -r release/requirements.txt
34-
34+
3535
- name: Install Processing
3636
run: |
3737
mkdir -p $GITHUB_WORKSPACE/processing
@@ -55,10 +55,10 @@ jobs:
5555
cp -a $GITHUB_WORKSPACE/OpenBCI_GUI/libraries/. $HOME/sketchbook/libraries/
5656
5757
# Unit tests cannot be run on Linux without attached display.
58-
58+
5959
- name: Build
6060
run: python $GITHUB_WORKSPACE/release/build.py
61-
61+
6262
- name: Package
6363
run: python $GITHUB_WORKSPACE/release/package.py
6464

@@ -67,17 +67,17 @@ jobs:
6767
with:
6868
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
6969
aws-region: ${{ env.AWS_REGION }}
70-
70+
7171
- name: Get Branch Names
7272
id: branch-name
7373
uses: tj-actions/branch-names@v7
74-
74+
7575
- name: Store Build on AWS
7676
run: |
7777
cd $GITHUB_WORKSPACE
7878
ls
7979
CURRENT_BRANCH=${{ steps.branch-name.outputs.head_ref_branch }}
8080
echo $CURRENT_BRANCH
81-
aws s3 rm s3://openbci-public-gui-v6/latest --recursive --exclude "*" --include "openbcigui_*_linux64.zip"
82-
aws s3 cp $GITHUB_WORKSPACE/. s3://openbci-public-gui-v6/${CURRENT_BRANCH} --recursive --exclude "*" --include "openbcigui_*_linux64.zip"
83-
aws s3 cp $GITHUB_WORKSPACE/. s3://openbci-public-gui-v6/latest --recursive --exclude "*" --include "openbcigui_*_linux64.zip"
81+
aws s3 rm s3://openbci-public-gui-v7/latest --recursive --exclude "*" --include "openbcigui_*_linux64.zip"
82+
aws s3 cp $GITHUB_WORKSPACE/. s3://openbci-public-gui-v7/${CURRENT_BRANCH} --recursive --exclude "*" --include "openbcigui_*_linux64.zip"
83+
aws s3 cp $GITHUB_WORKSPACE/. s3://openbci-public-gui-v7/latest --recursive --exclude "*" --include "openbcigui_*_linux64.zip"

0 commit comments

Comments
 (0)