set up new workflow and migrate to .forgejo dir (#5)
Some checks failed
Deploy / deploy (push) Failing after 39s
Some checks failed
Deploy / deploy (push) Failing after 39s
Co-authored-by: Benjamin Palko <benjaminpalko@hotmail.com> Reviewed-on: #5
This commit is contained in:
parent
c37955c51b
commit
f526f5c0aa
99 changed files with 1866 additions and 1470 deletions
27
.forgejo/workflows/deploy.yml
Normal file
27
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
- uses: pnpm/setup@v2
|
||||
with:
|
||||
version: 11
|
||||
runtime: node@24
|
||||
cache: true
|
||||
- name: Install deps
|
||||
run: pnpm install --frozen-lockfile
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
- name: Deploy to Netlify
|
||||
run: npx -y netlify-cli deploy --prod --dir=build
|
||||
env:
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
36
.forgejo/workflows/pr.yml
Normal file
36
.forgejo/workflows/pr.yml
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
name: PR Gate
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions:
|
||||
contents: read # to fetch code (actions/checkout)
|
||||
|
||||
jobs:
|
||||
checks:
|
||||
name: Checks
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- uses: pnpm/setup@v2
|
||||
with:
|
||||
version: 11
|
||||
runtime: node@24
|
||||
cache: true
|
||||
- name: Install deps
|
||||
run: pnpm install --frozen-lockfile
|
||||
- name: Lint
|
||||
run: pnpm lint
|
||||
- name: Svelte Check
|
||||
run: pnpm check
|
||||
- name: Test
|
||||
run: pnpm run test:unit
|
||||
- name: Build
|
||||
run: pnpm run build
|
||||
Loading…
Add table
Add a link
Reference in a new issue