Skip to content

Commit

Permalink
Merge pull request #11 from DARPA-ASKEM/2-get-repo-building-packages
Browse files Browse the repository at this point in the history
updated publish action
  • Loading branch information
dgauldie authored Sep 11, 2023
2 parents e02b132 + 03acdeb commit fd3ef63
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,10 @@ jobs:
ref: ${{ github.event.workflow_run.head_branch }}

# 1.2 - Generate a matrix output of all the targets for the specified group
# if its not triggered by tag use `staging` bake group instead
- name: Create matrix
id: targets
run: |
if [[ "${{ github.ref_type }}" == "branch" && "${{ github.ref_name }}" == "main" ]]; then
BAKE_GROUP=staging
else
BAKE_GROUP=prod
fi
BAKE_GROUP=documentation
TARGETS=$(docker buildx bake $BAKE_GROUP -f ${{ env.BAKE_FILE }} --print | jq -cr ".group.$BAKE_GROUP.targets")
echo "matrix=$TARGETS" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit fd3ef63

Please sign in to comment.