Skip to content

Commit

Permalink
Fixed workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
smirko-dev committed Oct 2, 2021
1 parent 9bcd3eb commit 73645de
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions .github/workflows/FitbitBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
workflow_dispatch:

jobs:
build:
name: Build
build-sdk4:
name: Build SDK4
runs-on: ubuntu-latest

steps:
Expand All @@ -24,6 +24,41 @@ jobs:
- name: Setup node
uses: actions/setup-node@v1

- name: Select SDK 4
run: cp package.sdk4.json package.json

- name: Checkout Fitbit SDK
run: npm add --also=dev @fitbit/sdk

- name: Checkout Fitbit SDK-CLI
run: npm add --also=dev @fitbit/sdk-cli

- name: Run Build
run: npx fitbit-build --if-present

- name: Upload artifact
uses: actions/upload-artifact@v2
if: ${{ success() }}
with:
path: build/app.fba
if-no-files-found: error

build-sdk5:
name: Build SDK5
runs-on: ubuntu-latest

steps:
- name: Checkout branch
uses: actions/checkout@v2
with:
lfs: true

- name: Setup node
uses: actions/setup-node@v1

- name: Select SDK 5
run: cp package.sdk5.json package.json

- name: Checkout Fitbit SDK
run: npm add --also=dev @fitbit/sdk

Expand Down

0 comments on commit 73645de

Please sign in to comment.