mirror of
https://github.com/kou029w/_.git
synced 2025-02-02 15:18:37 +00:00
Compare commits
2 commits
08f797b3f2
...
051d8906d5
Author | SHA1 | Date | |
---|---|---|---|
051d8906d5 | |||
65d2e4a71f |
3 changed files with 21 additions and 26 deletions
26
.github/workflows/_studio.yml
vendored
26
.github/workflows/_studio.yml
vendored
|
@ -1,26 +0,0 @@
|
||||||
name: Astro Studio
|
|
||||||
|
|
||||||
env:
|
|
||||||
ASTRO_STUDIO_APP_TOKEN: ${{secrets.ASTRO_STUDIO_APP_TOKEN }}
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
pull_request:
|
|
||||||
types: [opened, reopened, synchronize]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
DB:
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
actions: read
|
|
||||||
pull-requests: write
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
- uses: jaid/action-npm-install@v1.2.1
|
|
||||||
- uses: withastro/action-studio@main
|
|
13
deno/deno.json
Normal file
13
deno/deno.json
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"tasks": {
|
||||||
|
"dev": "deno run --watch main.ts"
|
||||||
|
},
|
||||||
|
"deploy": {
|
||||||
|
"project": "d7ff4021-31bb-4663-b015-12a9e7b9bb64",
|
||||||
|
"exclude": [
|
||||||
|
"**/node_modules"
|
||||||
|
],
|
||||||
|
"include": [],
|
||||||
|
"entrypoint": "main.ts"
|
||||||
|
}
|
||||||
|
}
|
8
deno/main.ts
Normal file
8
deno/main.ts
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
const now = new Date();
|
||||||
|
|
||||||
|
if (import.meta.main) {
|
||||||
|
Deno.serve(() => new Response(`${now}: Hello World!`));
|
||||||
|
}
|
||||||
|
|
||||||
|
// $ curl https://great-crow-36.deno.dev/
|
||||||
|
// Mon Apr 22 2024 03:13:21 GMT+0000 (Coordinated Universal Time): Hello World!
|
Loading…
Add table
Reference in a new issue