Skip to content

Commit 384da05

Browse files
committed
Add GitHub Actions workflow for publishing DaxLib packages
1 parent 0fcb3bc commit 384da05

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish-package.yml renamed to .github/workflows/publish-abcclassification.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ permissions:
3030
env:
3131
# Name of the forked daxlib repository (change if your fork has a different name)
3232
DAXLIBFORK_NAME: ${{ github.repository_owner }}/fork-daxlib
33+
DAXPATTERN_NAME: AbcClassification
3334

3435
jobs:
3536
publish:
@@ -62,10 +63,10 @@ jobs:
6263
id: package
6364
working-directory: source-repo
6465
run: |
65-
PACKAGE_NAME=$(jq -r '.id' src/manifest.daxlib)
66+
PACKAGE_NAME=$(jq -r '.id' src/${{ env.DAXPATTERN_NAME }}/manifest.daxlib)
6667
echo "name=${PACKAGE_NAME}" >> $GITHUB_OUTPUT
6768
echo "Package name: ${PACKAGE_NAME}"
68-
PACKAGE_VERSION=$(jq -r '.version' src/manifest.daxlib)
69+
PACKAGE_VERSION=$(jq -r '.version' src/${{ env.DAXPATTERN_NAME }}/manifest.daxlib)
6970
echo "version=${PACKAGE_VERSION}" >> $GITHUB_OUTPUT
7071
echo "Package version: ${PACKAGE_VERSION}"
7172
PACKAGE_FOLDER="packages/$(echo "${PACKAGE_NAME}" | cut -c1 | tr '[:upper:]' '[:lower:]')/$(echo "${PACKAGE_NAME}" | tr '[:upper:]' '[:lower:]')/${PACKAGE_VERSION}"
@@ -96,7 +97,7 @@ jobs:
9697

9798
# Copy package files to the new folder
9899
- name: Copy package files
99-
run: cp -rv source-repo/src/* "fork-repo/${{ steps.package.outputs.folder }}/"
100+
run: cp -rv source-repo/src/${{ env.DAXPATTERN_NAME }}/* "fork-repo/${{ steps.package.outputs.folder }}/"
100101

101102
# Commit changes. If there are no changes, this will fail and stop the workflow
102103
- name: Git commit changes

0 commit comments

Comments
 (0)