From 33468b4c3ed533a0cc434724f2b0eae5546b4e1f Mon Sep 17 00:00:00 2001 From: Carter Himmel Date: Sun, 29 Oct 2023 17:04:07 -0600 Subject: [PATCH] fix(actions): use action asset upload and set metadata url --- .github/workflows/web.yml | 4 ++-- web/src/app/layout.tsx | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index c663013..e7ad3c5 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -38,8 +38,8 @@ jobs: run: cd out && tar -czvf ../web-$GITHUB_SHA.tar.gz . - name: Releasing assets - uses: softprops/action-gh-release@v1 + uses: actions/upload-artifact@v3 with: - files: web*.tar.gz + path: web*.tar.gz env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/web/src/app/layout.tsx b/web/src/app/layout.tsx index 225b27d..8bcec74 100644 --- a/web/src/app/layout.tsx +++ b/web/src/app/layout.tsx @@ -1,4 +1,5 @@ import './globals.css'; +import { URL } from 'node:url'; import type { Metadata, Viewport } from 'next'; import { JetBrains_Mono } from 'next/font/google'; import PlausibleProvider from 'next-plausible'; @@ -10,6 +11,7 @@ export const viewport: Viewport = { }; export const metadata: Metadata = { + metadataBase: new URL(process.env.NEXT_PUBLIC_METADATA_BASE!), title: 'crates.pm', description: 'A search engine for Crates', icons: {