retvrn to drone
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2024-03-17 01:10:17 +01:00
parent 0603eb2c12
commit 3971f4171f
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
3 changed files with 21 additions and 45 deletions

20
.drone.yml Normal file
View file

@ -0,0 +1,20 @@
kind: 'pipeline'
type: 'docker'
name: 'Build and Deploy'
steps:
- name: Build
image: 'node:20'
commands:
- corepack enable && pnpm config set store-dir .cache/pnpm
- pnpm i
- pnpm build
- name: Deploy
image: 'plugins/gh-pages'
settings:
username: oauth2
password:
from_secret: GITEA_TOKEN
copy_contents: true
pages_directory: build
target_branch: pages

View file

@ -1,42 +0,0 @@
name: Build & Deploy
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version: 20
- name: Install dependencies
run: pnpm install
- name: Vite
run: pnpm build
- name: Deploy
uses: addnab/docker-run-action@v3
with:
image: plugins/gh-pages
run: /bin/drone-gh-pages
env:
PLUGIN_USERNAME: oauth2
PLUGIN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
PLUGIN_TARGET_BRANCH: pages
PLUGIN_PAGES_DIRECTORY: build
PLUGIN_REMOTE_URL: https://git.froth.zone/infrastructure/pages-landing-page
PLUGIN_COPY_CONTENTS: true
PLUGIN_LOG_LEVEL: debug

View file

@ -9,9 +9,7 @@
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write .",
"predeploy": "pnpm run build",
"deploy": "gh-pages -d build -r git@git.froth.zone:sam/static-pages.git -b pages --cname pages.git.froth.zone"
"format": "prettier --write ."
},
"devDependencies": {
"@skeletonlabs/skeleton": "2.9.0",