Compare commits
1 Commits
dev/build-
...
3f9dad8f9a
| Author | SHA1 | Date | |
|---|---|---|---|
|
3f9dad8f9a
|
@@ -1,24 +0,0 @@
|
|||||||
name: Release
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- v**
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
name: Release tagged version
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 18
|
|
||||||
- uses: denoland/setup-deno@v2
|
|
||||||
with:
|
|
||||||
deno-version: v2.1.x
|
|
||||||
- run: "deno task compile:release"
|
|
||||||
- uses: akkuman/gitea-release-action@v1
|
|
||||||
with:
|
|
||||||
files: |-
|
|
||||||
build/**
|
|
||||||
draft: true
|
|
||||||
sha256sum: true
|
|
||||||
13
deno.json
13
deno.json
@@ -2,17 +2,8 @@
|
|||||||
"tasks": {
|
"tasks": {
|
||||||
"dev": "deno run --allow-all --watch server.ts",
|
"dev": "deno run --allow-all --watch server.ts",
|
||||||
"server": "deno run --allow-all server.ts",
|
"server": "deno run --allow-all server.ts",
|
||||||
"lint": "deno lint",
|
"compile": "deno compile --allow-all --include ./assets/ --output ./build/substr_x86_64-unknown-linux-gnu server.ts",
|
||||||
"test": "deno test --allow-read --allow-env",
|
"test": "deno test --allow-read --allow-env"
|
||||||
"create-build-dir": "mkdir -p build",
|
|
||||||
"compile": {
|
|
||||||
"command": "deno compile --allow-all --include ./assets/ --output ./build/substr_x86_64-unknown-linux-gnu server.ts",
|
|
||||||
"dependencies": ["create-build-dir"]
|
|
||||||
},
|
|
||||||
"compile:release": {
|
|
||||||
"command": "echo LFG",
|
|
||||||
"dependencies": ["lint", "test", "compile"]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"imports": {
|
"imports": {
|
||||||
"@deno/gfm": "jsr:@deno/gfm@^0.10.0",
|
"@deno/gfm": "jsr:@deno/gfm@^0.10.0",
|
||||||
|
|||||||
2
nostr.ts
2
nostr.ts
@@ -110,7 +110,7 @@ export async function nostrUriToUrl(uri: string): Promise<string> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function replaceNostrUris(markdown: string): Promise<string> {
|
export async function replaceNostrUris(markdown: string): Promise<string> {
|
||||||
const nostrUriRegex = /(nostr:|nprofile|naddr|nevent|nrelay|npub)[a-z0-9]+/g;
|
const nostrUriRegex = /(nostr:|nprofile|naddr|nevent|npub)[a-z0-9]+/g;
|
||||||
const matches = markdown.match(nostrUriRegex);
|
const matches = markdown.match(nostrUriRegex);
|
||||||
if (!matches) return markdown;
|
if (!matches) return markdown;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user