Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ on:
push:
branches:
- main
# semantic-release commits the new version to package.json with the workflow
# token, which starts no push workflow. Redeploy after every successful Release
# run on main so the stamped version below is the published one.
workflow_run:
workflows: ['Publish Package']
types: [completed]
branches: [main]
workflow_dispatch:

permissions:
Expand All @@ -17,13 +24,24 @@ concurrency:

jobs:
deploy:
# Deploy after a successful Release run triggered by a push to main only.
if: >-
github.event_name != 'workflow_run' ||
(github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push')
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Stamp the package version
# The site source never hardcodes the version: JSON-LD and llms.txt carry
# __PACKAGE_VERSION__, replaced here with the version from package.json.
run: |
version="$(node -p "require('./package.json').version")"
grep -rl --include='*.html' --include='*.txt' '__PACKAGE_VERSION__' docs/site | xargs -r sed -i "s/__PACKAGE_VERSION__/${version}/g"
if grep -rq '__PACKAGE_VERSION__' docs/site; then echo 'Unreplaced version token in docs/site' >&2; exit 1; fi
- name: Configure Pages
uses: actions/configure-pages@v6
- name: Upload site artifact
Expand Down
1 change: 1 addition & 0 deletions docs/site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"name": "Magic Session Manager",
"alternateName": "strapi-plugin-magic-sessionmanager",
"description": "Free Strapi 5 plugin that records every Users & Permissions sign-in as a session, lets admins end sessions and block users, and adds logout routes, failed-login lockout and optional country rules.",
"softwareVersion": "__PACKAGE_VERSION__",
"applicationCategory": "DeveloperApplication",
"applicationSubCategory": "Strapi plugin",
"operatingSystem": "Node.js 22+ / Strapi 5",
Expand Down
2 changes: 1 addition & 1 deletion docs/site/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> Magic Session Manager (npm: strapi-plugin-magic-sessionmanager, plugin id: magic-sessionmanager) is a free, MIT-licensed Strapi 5 plugin that records every Users & Permissions sign-in as a session. Admins see who is online, end single sessions or all sessions of a user, and block accounts; the app gets logout routes, a "my devices" list, failed-login lockout and optional country rules.

The current version is on npm (link below). The plugin sends no telemetry and needs no account or license key.
Current version: __PACKAGE_VERSION__ (npm). The plugin sends no telemetry and needs no account or license key.

What it does:

Expand Down