Skip to content

Commit

Permalink
Merge pull request #255 from Nu-SCPTheme/fix-cdn
Browse files Browse the repository at this point in the history
Fix CDN workflow build
  • Loading branch information
emmiegit authored Aug 6, 2024
2 parents f4a2b08 + 2359b74 commit 352831e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build

on:
push:
paths:
- 'build/**/'
- 'legacy/*'
- 'package.json'
- 'src/**/*'
- '.github/workflows/build.yaml'

jobs:
build:
name: Build CSS
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Bun
uses: oven-sh/setup-bun@v1

- name: Build
run: make
11 changes: 7 additions & 4 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Install dependencies
run: npm ci
- name: Install Bun
uses: oven-sh/setup-bun@v1

- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}

- name: Build
run: ./build.sh
run: make

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand All @@ -45,6 +45,9 @@ jobs:
uses: actions/deploy-pages@v4
id: deployment

- name: Clean up for S3
run: make clean-up-s3

- name: Upload to S3
run: |
export sync_args=( "--delete" "--acl" "public-read" "dist" "s3://${{ vars.AWS_S3_BUCKET }}/${{ env.BUCKET_PATH }}" )
Expand Down

0 comments on commit 352831e

Please sign in to comment.