chore: add pipeline
All checks were successful
Commit / ci (push) Successful in 40s

This commit is contained in:
2025-11-26 22:00:07 +01:00
parent 5ab04b9acb
commit 60ff74f233
7 changed files with 99 additions and 7533 deletions

View File

@@ -0,0 +1,36 @@
name: Commit
on:
push:
# only trigger on branches, not on tags
branches: '**'
jobs:
# Job 1: Lint and Test (Type Check)
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 25
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint (Prettier & ESLint)
run: pnpm lint
- name: Type Check (Svelte Check)
# Based on your package.json "check" script
run: pnpm check

28
.gitea/workflows/pr.yaml Normal file
View File

@@ -0,0 +1,28 @@
name: PullRequest
on:
pull_request:
branches: ['main', 'dev']
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
with:
config-inline: |
[registry."git.schreifuchs.ch"]
http = true
insecure = true
- name: login
run: docker login -u schreifuchs -p ${{ secrets.REGISTRY_TOKEN }} git.schreifuchs.ch
- name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: 'git.schreifuchs.ch/schreifuchs/aktiteil:pr-${{ github.ref_name }}'

View File

@@ -0,0 +1,29 @@
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: https://github.com/actions/checkout@v4
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
with:
config-inline: |
[registry."git.schreifuchs.ch"]
http = true
insecure = true
- name: login
run: docker login -u schreifuchs -p ${{ secrets.REGISTRY_TOKEN }} git.schreifuchs.ch
- name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: 'git.schreifuchs.ch/schreifuchs/aktiteil:${{ github.ref_name }},git.schreifuchs.ch/aktiteil/tdontd:latest'

View File

@@ -5,5 +5,8 @@ yarn.lock
bun.lock
bun.lockb
# Pipeline
.pnpm-store/
# Miscellaneous
/static/

View File

@@ -1,28 +1,14 @@
# Aktiteil
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
## Creating a project
If you're seeing this, you've probably already done this step. Congrats!
```sh
# create a new project in the current directory
npx sv create
# create a new project in my-app
npx sv create my-app
```
## Developing
Once you've created a project and installed dependencies with `pnpm install` ), start a development server:
```sh
npm run dev
pnpm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
pnpm run dev -- --open
```
## Building
@@ -30,9 +16,7 @@ npm run dev -- --open
To create a production version of your app:
```sh
npm run build
pnpm run build
```
You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kitk/adapters) for your target environment.

6857
package-lock.json generated

File diff suppressed because it is too large Load Diff

657
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff