Skip to content

Commit

Permalink
FIX: GHA deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
antonakospanos authored Jul 21, 2023
1 parent 510806a commit a6288ba
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish_to_jfrog.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Push project build to JFrog Artifactory

env:
ARTIFACTORY_USERNAME: ${{ vars.JFROG_USER }}
ARTIFACTORY_API_KEY: ${{ secrets.JFROG_API_KEY}}

on:
workflow_dispatch:
inputs:
Expand All @@ -22,7 +18,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest

environment: Deploy
steps:
# This action checks out the code from the repository
- name: Checkout repository
Expand All @@ -33,6 +29,9 @@ jobs:
python-version: "3.11"

- name: Install poetry, build, and publish via tag
env:
ARTIFACTORY_USERNAME: ${{ vars.JFROG_USER }}
ARTIFACTORY_API_KEY: ${{ secrets.JFROG_API_KEY}}
if: startsWith(github.ref, 'refs/tags/')
run: |
pip install poetry
Expand All @@ -43,6 +42,9 @@ jobs:
make deploy
- name: Install poetry, build, and publish via custom branch
env:
ARTIFACTORY_USERNAME: ${{ vars.JFROG_USER }}
ARTIFACTORY_API_KEY: ${{ secrets.JFROG_API_KEY}}
if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
pip install poetry
Expand Down

0 comments on commit a6288ba

Please sign in to comment.