Skip to content

Commit

Permalink
pipeline fix with action output
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjakab committed Jun 22, 2024
1 parent ef4eacb commit a9d2c22
Showing 1 changed file with 29 additions and 33 deletions.
62 changes: 29 additions & 33 deletions .github/workflows/test_release_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
name: Test & Release

on:
push

# on:
# push:
# tags:
# - "v*"
push:
tags:
- "v*"

jobs:
# test:
# name: Test
# runs-on: ubuntu-latest
# strategy:
# matrix:
# # device: [d2bravo, d2bravo_titanium, fenix3, fenix3_hr, fr230, fr235, fr735xt, vivoactive4]
# device: [fr235]
# steps:
# - uses: actions/checkout@v4
# - name: Test on device ${{ matrix.device }}
# id: run_tests
# uses: adamjakab/action-connectiq-builder@v1
# with:
# operation: TEST
# device: ${{ matrix.device }}
# certificate: ${{ secrets.CONNECTIQ_DEVELOPER_KEY_BASE64}}
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
# device: [d2bravo, d2bravo_titanium, fenix3, fenix3_hr, fr230, fr235, fr735xt, vivoactive4]
device: [fr235]
steps:
- uses: actions/checkout@v4
- name: Test on device ${{ matrix.device }}
id: run_tests
uses: adamjakab/action-connectiq-builder@v1
with:
operation: TEST
device: ${{ matrix.device }}
certificate: ${{ secrets.CONNECTIQ_DEVELOPER_KEY_BASE64}}
release:
# needs: test
needs: test
name: Release
runs-on: ubuntu-latest
steps:
Expand All @@ -38,15 +35,14 @@ jobs:
operation: PACKAGE
certificate: ${{ secrets.CONNECTIQ_DEVELOPER_KEY_BASE64}}
package_name: iHIIT_${{ github.ref_name }}.iq
- name: Test Paths
- name: Check Package Path
run: |
echo "PKG PATH: '${{ steps.package_app.outputs.package_path }}'"
echo "PKG: '${{ github.workspace }}/${{ steps.package_app.outputs.package_path }}'"
echo "Relative Package Path: '${{ steps.package_app.outputs.package_path }}'"
echo "Absolute Package Path: '${{ github.workspace }}/${{ steps.package_app.outputs.package_path }}'"
ls -la "${{ github.workspace }}/${{ steps.package_app.outputs.package_path }}"
# - name: Create Release
# id: create_release
# uses: ncipollo/release-action@v1
# with:
# generateReleaseNotes: true
# #artifacts: ./bin/iHIIT_${{ github.ref_name }}.iq
# artifacts: ${{ steps.package_app.outputs.package_path }}
- name: Create New Release
id: create_release
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
artifacts: ${{ github.workspace }}/${{ steps.package_app.outputs.package_path }}

0 comments on commit a9d2c22

Please sign in to comment.