Skip to content

Commit

Permalink
feat: add jsonschema (#64)
Browse files Browse the repository at this point in the history
* feat: add jsonschema

* Revert "fix: remove deploy tasks"

This reverts commit ed7abc9.

* chore: require build task

* feat: format
  • Loading branch information
9renpoto authored Dec 9, 2023
1 parent 1c55640 commit d616778
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: actionlint
on:
pull_request:
paths:
- '.github/actions/**'
- '.github/workflows/**'
- ".github/actions/**"
- ".github/workflows/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy
on:
push:
branches: [main]
pull_request:
branches: main

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Install Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Build step
run: deno task build

- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "9renpoto"
entrypoint: "./main.ts"
12 changes: 6 additions & 6 deletions .github/workflows/feed-to-social-media.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Feed to social media
on:
workflow_dispatch:
schedule:
- cron: '15 3,10 * * *'
- cron: "15 3,10 * * *"

permissions:
contents: write # To write the generated contents to the readme
Expand All @@ -14,8 +14,8 @@ jobs:
- name: Feed to social media
uses: lwojcik/github-action-feed-to-social-media@v2
with:
feedUrl: 'https://9renpoto.win/rss.xml'
newestItemStrategy: 'latestDate'
feedUrl: "https://9renpoto.win/rss.xml"
newestItemStrategy: "latestDate"
postFormat: "Blogged: {title}\n\n{link}"
# Twitter settings
twitterEnable: true
Expand All @@ -26,6 +26,6 @@ jobs:
# Bluesky settings
blueskyEnable: true
blueskyAppPassword: ${{ secrets.BSKY_APP_PASSWORD }}
blueskyHandle: '9renpoto.bsky.social'
blueskyOwnerHandle: '9renpoto.bsky.social'
blueskyOwnerContact: '[email protected]'
blueskyHandle: "9renpoto.bsky.social"
blueskyOwnerHandle: "9renpoto.bsky.social"
blueskyOwnerContact: "[email protected]"
17 changes: 8 additions & 9 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@ name: Mark stale issues and pull requests

on:
schedule:
- cron: "30 1 * * *"
- cron: "30 1 * * *"

jobs:
stale:

runs-on: ubuntu-latest

steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'Stale issue message'
stale-pr-message: 'Stale pull request message'
stale-issue-label: 'no-issue-activity'
stale-pr-label: 'no-pr-activity'
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "Stale issue message"
stale-pr-message: "Stale pull request message"
stale-issue-label: "no-issue-activity"
stale-pr-label: "no-pr-activity"
1 change: 1 addition & 0 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://deno.land/x/deno/cli/schemas/config-file.v1.json",
"nodeModulesDir": true,
"tasks": {
"start": "deno run -A --watch=static/,routes/ dev.ts",
Expand Down

0 comments on commit d616778

Please sign in to comment.