move to forgejo + cf pages
Some checks failed
Build & Depoly / Depoly blog (push) Failing after 1m2s
Some checks failed
Build & Depoly / Depoly blog (push) Failing after 1m2s
This commit is contained in:
parent
bd58d015bc
commit
30f835657d
4 changed files with 679 additions and 62 deletions
49
.forgejo/workflows/depoly.yml
Normal file
49
.forgejo/workflows/depoly.yml
Normal file
|
@ -0,0 +1,49 @@
|
|||
name: Build & Depoly
|
||||
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
depoly:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: node:20-bullseye
|
||||
name: Depoly blog
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true # Checkout private submodules(themes or something else).
|
||||
|
||||
- name: Setup pnpm
|
||||
run: |
|
||||
corepack enable
|
||||
corepack prepare pnpm@latest-8 --activate
|
||||
pnpm config set store-dir /tmp/pnpm-store
|
||||
|
||||
- name: Cache Dependencies
|
||||
id: dependencies-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: /tmp/pnpm-store
|
||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||
|
||||
- name: Install Dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Cache Generated Files
|
||||
id: files-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
public/**
|
||||
key: generated-files
|
||||
|
||||
- name: Build Website
|
||||
run: pnpm build
|
||||
|
||||
- name: Depoly Website
|
||||
uses: https://github.com/cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy --project-name=rubicons-blog
|
Loading…
Add table
Add a link
Reference in a new issue