Skip to content

Commit

Permalink
Merge pull request #65 from falsepopsky/dev
Browse files Browse the repository at this point in the history
fix: drop netlify, use gh-pages
  • Loading branch information
falsepopsky authored Apr 12, 2024
2 parents e195b8e + 76f6130 commit 307a1ca
Show file tree
Hide file tree
Showing 8 changed files with 215 additions and 433 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-snakes-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@untidy/thetvdb": patch
---

replace homepage url
46 changes: 46 additions & 0 deletions .github/workflows/static.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Deploy static content to Pages

on:
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
deploy:
name: 🏗️ Build and Deploy to Pages
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/[email protected]
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 8.15.6
- name: Setup Node
uses: actions/[email protected]
with:
node-version-file: ".nvmrc"
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Run build
run: pnpm docs:build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./packages/web/dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
4 changes: 0 additions & 4 deletions netlify.toml

This file was deleted.

2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"author": "falsepopsky",
"license": "Apache-2.0",
"homepage": "https://untidy-thetvdb.netlify.app/",
"homepage": "https://falsepopsky.github.io/thetvdb",
"scripts": {
"clean:build": "rm -rf dist",
"prebuild": "pnpm run clean:build",
Expand Down
2 changes: 2 additions & 0 deletions packages/web/astro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import tailwind from '@astrojs/tailwind';
import { defineConfig } from 'astro/config';

export default defineConfig({
site: 'https://falsepopsky.github.io',
base: 'thetvdb',
integrations: [
tailwind({ applyBaseStyles: false }),
starlight({
Expand Down
2 changes: 1 addition & 1 deletion packages/web/src/content/docs/guides/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ const data = await client.characterById('64140522');
</Details>

That's it! You have now made your first request. For more documentation, please check the
[API](/api/) section.
[API](/thetvdb/api/) section.
4 changes: 2 additions & 2 deletions packages/web/src/content/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ template: splash
hero:
tagline: Client library for TheTVDB API in Node.js
image:
file: ../../assets/favicon.png
file: '@assets/favicon.png'
actions:
- text: Get Started
link: /guides/getting-started/
link: /thetvdb/guides/getting-started/
icon: right-arrow
variant: primary
- text: View on GitHub
Expand Down
Loading

0 comments on commit 307a1ca

Please sign in to comment.