fork init
Some checks failed
Generate Database / generate (push) Has been cancelled
Repo sync GitHub -> Codeberg / codeberg (push) Has been cancelled

This commit is contained in:
dorkbutt 2025-06-04 21:09:17 -04:00
parent b4f5aba93b
commit 2e6b63ea33
No known key found for this signature in database
11 changed files with 8 additions and 2651 deletions

View file

@ -0,0 +1,55 @@
name: Generate Database
on:
push:
branches:
- main
paths:
- ".github/workflows/generate-source.yml"
- ".github/scripts/generate/**/*.*"
- "source/data.json"
- "source/template.css"
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
generate:
runs-on: ubuntu-latest
permissions:
contents: write
# v this isn't really needed v
# strategy:
# matrix:
# retry-max: [3] # Set the maximum number of retries here
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Setup PNPM
working-directory: .github/scripts
run: |
npm i -g pnpm
pnpm i
- name: Run generate script
working-directory: .github/scripts
run: pnpm run generate
- name: Push changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add import.css
git commit -m "Update import.css (${{ github.sha || 'manual trigger' }})" || true
git push

View file

@ -0,0 +1,19 @@
# Sync repo to the Codeberg mirror
name: Repo sync GitHub -> Codeberg
on:
push:
branches:
- '**'
jobs:
codeberg:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: spyoungtech/mirror-action@v0.5.1
with:
REMOTE: "https://codeberg.org/UserPFP/UserPFP"
GIT_USERNAME: GithubMirroring
GIT_PASSWORD: ${{ secrets.CODEBERGMIRROR }}

View file

@ -0,0 +1,37 @@
name: Release
on:
push:
tags:
- "v*"
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
with:
version: latest
- name: Install Node.js dependencies
run: pnpm install
- name: Build TypeScript and bundle into asar
run: pnpm run bundle
- uses: ncipollo/release-action@v1
with:
artifacts: "bundle/*"
makeLatest: true