Skip to content

Commit

Permalink
update build to include README and LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
hazzuk committed Aug 24, 2024
1 parent ed8efe5 commit c1e1dfe
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# Combine all components and overrides
# Components and overrides
- name: Combine and clean CSS files
run: |
mkdir -p dist
Expand All @@ -24,32 +24,37 @@ jobs:
run: |
find components overrides -name '*.js' -exec sed -e '/^\/\*/d' -e '/^\*\//d' -e '/^ \* /d' -e '/^\/\//d' {} + >> dist/combined.js
- name: Add CSS license header
- name: Add CSS license header and add file
run: |
cat .github/license-header_css.txt > dist/temp.css
cat dist/combined.css >> dist/temp.css
mv dist/temp.css dist/combined.css
- name: Add JS license header
- name: Add JS license header and add file
run: |
cat .github/license-header_js.txt > dist/temp.js
cat dist/combined.js >> dist/temp.js
mv dist/temp.js dist/combined.js
# Add media files
# Media files
- name: Find and add all media
run: |
mkdir -p dist/media
find . -type f \( -name "*.png" -o -name "*.jpg" -o -name "*.webp" \) -exec mv {} dist/media/ \;
# Add personal blog files
# Remove or modify this accordingly
- name: Find and move blog files
# README and LICENSE
- name: Add repository README and LICENSE
run: |
mv "$GITHUB_WORKSPACE/README.md" "$GITHUB_WORKSPACE/LICENSE" dist/
# Blog files
# (Remove or modify this accordingly)
- name: Find and add blog files
run: |
mkdir -p dist/blog
find "$GITHUB_WORKSPACE/blog" -type f -exec mv {} dist/blog/ \;
# Create the build
# Build artifact
- name: Create build artifact
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit c1e1dfe

Please sign in to comment.