Skip to content

Commit

Permalink
use cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherBiscardi committed Feb 21, 2024
1 parent 53c835a commit aea8170
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
- uses: dsaltares/fetch-gh-release-asset@master
with:
file: "static-assets.tar.gz"
- name: Un-tar static-assets
- name: Un-tar static assets
run: tar -xzvf static-assets.tar.gz
- name: Publish to Netlify
uses: netlify/actions/cli@master
with:
args: deploy --dir=static-assets --prod
args: deploy --dir=target/site --prod
env:
NETLIFY_SITE_ID: 92571a12-b93f-4e77-bf4e-744c8ccec4e5
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
# - run: cargo install --git https://github.com/leptos-rs/cargo-leptos/commit/1a8356ce3e4114d682eccdadc4ca5677e0a7d056
- run: cargo leptos test
- run: cargo leptos build --release
env: https://thisweekinbevy-cdn.netlify.app
- name: Get current date
id: date
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ fn Wrapper(children: Children) -> impl IntoView {
>
<img
class="w-full"
src="/this-week-in-bevylight.png"
src="https://res.cloudinary.com/dilgcuzda/image/upload/v1708481576/thisweekinbevy/this-week-in-bevylight_uddwes.avif"
alt=""
sizes="(min-width: 1024px) 20rem, (min-width: 640px) 16rem, 12rem"
priority
Expand Down

0 comments on commit aea8170

Please sign in to comment.