Merge branch 'develop' of https://codeberg.org/mkljczk/pl-fe into develop
Some checks failed
Nicolium CI / Test and upload artifacts (22.x) (push) Has been cancelled
Nicolium CI / release (push) Has been cancelled
Nicolium CI / deploy (push) Has been cancelled
pl-api CI / Test for pl-api formatting (22.x) (push) Has been cancelled
pl-hooks CI / Test for a successful build (22.x) (push) Has been cancelled

This commit is contained in:
2026-03-23 01:20:45 +00:00
69 changed files with 1353 additions and 872 deletions

View File

@ -3,6 +3,7 @@ name: Nicolium CI
on:
push:
branches: [ "develop", "semistable" ]
tags: [ "v*" ]
pull_request:
branches: [ "develop" ]
@ -69,24 +70,35 @@ jobs:
working-directory: ./packages/nicolium/dist
run: zip -r ../nicolium.zip .
- name: Upload release zip artifact
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v4
with:
name: nicolium-release-zip
path: packages/nicolium/nicolium.zip
- name: build
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
env:
NODE_ENV: production
working-directory: ./packages/nicolium
run: |
BANNER_HTML="pl.mkljczk.pl runs Nicolium's \`develop\` branch, which can break sometimes. For a more stable experience, use <a href=\"https://web.nicolium.app\" target=\"_blank\" rel=\"noopener noreferrer\">web.nicolium.app</a>." WITH_LANDING_PAGE=true pnpm build
BANNER_HTML="pl.mkljczk.pl runs Nicolium's \`develop\` branch, which can break sometimes. For a more stable experience, use <a href=\"https://web.nicolium.app\" target=\"_blank\" rel=\"noopener noreferrer\">web.nicolium.app</a>." WITH_LANDING_PAGE=true ANALYZE=true pnpm build
cp dist/index.html dist/404.html
cp nicolium.zip dist/pl-fe.zip
- name: Build pl-api documentation
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
working-directory: ./packages/pl-api
run: npx typedoc
- name: Copy pl-api documentation
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
working-directory: ./packages/pl-api
run: cp docs ../nicolium/dist/pl-api-docs -r
- name: Create docs redirect
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
working-directory: .
run: |
mkdir -p ./packages/nicolium/dist/docs
@ -96,11 +108,31 @@ jobs:
EOF
- name: Upload Github Pages artifact
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: packages/nicolium/dist
release:
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download release zip artifact
uses: actions/download-artifact@v4
with:
name: nicolium-release-zip
path: .
- name: Upload asset to GitHub Release
uses: softprops/action-gh-release@v2
with:
files: nicolium.zip
generate_release_notes: true
deploy:
needs: build
if: github.ref == 'refs/heads/develop'