Skip to content

Commit

Permalink
Merge pull request #500 from IgorKowalczyk/renovate/astro-4.x
Browse files Browse the repository at this point in the history
Update dependency astro to v4
  • Loading branch information
IgorKowalczyk authored Dec 7, 2023
2 parents 8a523bc + 7cd6282 commit 8978a79
Show file tree
Hide file tree
Showing 8 changed files with 1,199 additions and 1,355 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ jobs:
- name: 🚀 Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "github-views"
project: ${{ vars.DENO_DEPLOY_PROJECT }}
entrypoint: "server/entry.mjs"
root: "dist"
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ You can overwrite default `Views` text with your own label.

![](https://github-views.deno.dev/api/badge/example?label=Your+own+label&display=true&color=blue)

> [!NOTE]
> Replace whitespace with `+` character in multi-word labels.
```markdown
![Github Views](https://github-views.deno.dev/api/badge/YOUR-USERNAME?label=Your+own+label)
```

> [!NOTE]
> Replace whitespace with `+` character in multi-word labels.
## 📦 `JSON` format

You can get the number of views in `json` format. It can be useful if you want to use the number of views in your application.
Expand Down Expand Up @@ -110,17 +110,21 @@ https://github-views.deno.dev/api/json/YOUR-USERNAME

## 🖥️ Hosting with Deno Deploy

1. Fork this repository on GitHub
1. Go to https://deno.com/deploy and create an account
2. Click "New Project" and select repository from Github
3. Select the repository with this project
4. Click "Deploy" and wait for the project to build
2. Click "New Project" and select your account and forked repository
3. Click "Add build step" and wait for the project to build
2. Go to [repository settings](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings) -> [Secrets and variables -> Actions -> Variables](https://docs.github.com/en/actions/learn-github-actions/variables) and add `DENO_DEPLOY_PROJECT` variable with your [Deno Deploy](https://deno.com/deploy) project name.
4. Wait for the project to build and go to the project URL

> [!IMPORTANT]
> This project requires private access to [Deno KV](https://deno.com/kv).
> This project requires access to [Deno KV](https://deno.com/kv) which is currently in beta.
## 🖥️ Hosting with Vercel

Version `v3` does not support Vercel hosting. If you want to host this project on Vercel, use version [v2](https://github.com/IgorKowalczyk/github-views/tree/v2.2.1) and follow the instructions corresponding to the version.
> [!WARNING]
> Versions `>= v3` does not support Vercel hosting. If you want to host this project on Vercel, use versions
`<= v2`. To do this, go to [v2 branch](https://github.com/IgorKowalczyk/github-views/tree/v2.2.1) and follow the instructions corresponding to the version.

## ⁉️ Issues

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@astrojs/deno": "5.0.1",
"@astrojs/tailwind": "5.0.3",
"@igorkowalczyk/is-browser": "5.0.2",
"astro": "3.6.4",
"astro": "4.0.3",
"badgen": "3.2.3",
"canvas-confetti": "1.9.2",
"mini-svg-data-uri": "1.4.4",
Expand Down
Loading

0 comments on commit 8978a79

Please sign in to comment.