Compare commits
5 Commits
ba69990860
...
master
Author | SHA1 | Date | |
---|---|---|---|
3938ba0d99 | |||
c6c7eaf7fc | |||
46c2932861 | |||
bc11b363c4 | |||
ca45be57fb |
21
.gitea/workflows/deploy.yaml
Normal file
21
.gitea/workflows/deploy.yaml
Normal 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'
|
@ -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,
|
||||
|
Reference in New Issue
Block a user