Skip to content

Commit

Permalink
Build seperate sourcode files
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvdlinde committed Aug 22, 2024
1 parent b3d86bb commit 3f74b11
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/release-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Copy the packadge files into the packadge
run: |
mkdir -p package/opencatalogi
cp -r README.md CHANGELOG.md LICENSE.md psalm.xml package.json package-lock.json openapi.json composer.json appinfo css img js lib node_modules src templates vendor package/opencatalogi/
cp -r README.md CHANGELOG.md LICENSE.md psalm.xml package.json package-lock.json openapi.json composer.json composer.lock appinfo css img js lib node_modules src templates vendor package/opencatalogi/
# Step 12: Create the ZIP archive with code in opencatalogi directory
- name: Create ZIP
Expand All @@ -101,8 +101,24 @@ jobs:
# Step 14: Remove the package directory after creating archives and before freezing the code in an realease
- name: Clean up package directory
run: |
rm -rf package
cd package && rm -rf vendor js node_modules
cp -r docs tests .babelrc .estlintrc.js package/opencatalogi/
# Step 12: Create the ZIP archive with code in opencatalogi directory
- name: Create ZIP
run: |
cd package && zip -r ../sourcecode.zip opencatalogi
# Step 13: Create the TAR.GZ archive with code in opencatalogi directory
- name: Create Tarball
run: |
cd package && tar -czf ../sourcecode.tar.gz opencatalogi
# Step 14: Remove the package directory after creating archives and before freezing the code in an realease
- name: Clean up package directory
run: |
rm -rf package
# Step 10: Create a new release on GitHub
- name: Upload Release
uses: ncipollo/[email protected]
Expand All @@ -112,6 +128,8 @@ jobs:
package/LICENSE.md
opencatalogi.zip
opencatalogi.tar.gz
sourcecode.zip
sourcecode.tar.gz
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.version.outputs.version }}
# Documentation: https://github.com/ncipollo/release-action
Expand Down

0 comments on commit 3f74b11

Please sign in to comment.