Compare commits

...

5 Commits

Author SHA1 Message Date
3938ba0d99 Added new version of hash
All checks were successful
/ Deploy to Cloudflare Pages (push) Successful in 5m2s
2023-10-22 18:53:24 -06:00
c6c7eaf7fc Added new config for pages action
Some checks failed
/ Deploy to Cloudflare Pages (push) Failing after 15s
2023-10-22 18:52:08 -06:00
46c2932861 Added new config for runner
Some checks failed
/ Deploy to Cloudflare Pages (push) Failing after 33s
2023-10-22 18:40:38 -06:00
bc11b363c4 Added github url
Some checks reported warnings
/ Deploy to Cloudflare Pages (push) Has been cancelled
2023-10-22 18:21:55 -06:00
ca45be57fb Added cloudflare pages deploy 2023-10-22 17:41:30 -06:00
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,21 @@
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
# Run your project's build step
- name: Build
run: npm install && npm run build
- name: Publish
uses: https://github.com/cloudflare/pages-action@f0a1cd58cd66095dee69bfa18fa5efd1dde93bca
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: 'rafa-page' # e.g. 'my-project'
directory: 'dist' # e.g. 'dist'

View File

@ -2,7 +2,7 @@ import rss from "@astrojs/rss";
import type { APIRoute } from "astro";
import { getCollection } from "astro:content";
export const get: APIRoute = async function get({ site }) {
export const get: APIRoute = async function get({ site }: any) {
const posts = await getCollection("blog");
const items = posts.map(({ data: { image, title, exerpt, date }, slug }) => ({
title,