Skip to content

Commit

Permalink
.github: add support for pushing releases to artifactory
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Feb 5, 2025
1 parent 5ac6523 commit 35b7e2e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
env:
HERE3_CUBEID_TAG: v1.10
HERE4_CUBEID_TAG: v1.10
ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }}
ARTIFACTORY_USER: ${{ secrets.ARTIFACTORY_USER }}
ARTIFACTORY_TOKEN: ${{ secrets.ARTIFACTORY_TOKEN }}

steps:
- name: Install dependencies
run: |
Expand Down Expand Up @@ -151,3 +155,18 @@ jobs:
asset_name: GNSSPeriph.zip
asset_path: GNSSPeriph.zip
asset_content_type: application/zip

- name: Setup JFrog CLI
if: github.event_name == 'release'
run: |
curl -fL https://install-cli.jfrog.io | sh
jf config add --url="${ARTIFACTORY_URL}" --user="${ARTIFACTORY_USER}" --password="${ARTIFACTORY_TOKEN}" --interactive=false
- name: Upload to JFrog Artifactory
if: github.event_name == 'release'
run: |
# Extract version without 'v' prefix
VERSION=${GITHUB_REF_NAME#v}
# Upload entire release directory to generic-local repository
jf rt upload "release/*" "generic-local/gnss-periph/${GITHUB_REF_NAME}/"

0 comments on commit 35b7e2e

Please sign in to comment.