diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index 81e2131..875a07e 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -3,8 +3,8 @@ name: actionlint on: pull_request: paths: - - '.github/actions/**' - - '.github/workflows/**' + - ".github/actions/**" + - ".github/workflows/**" concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..81ee3ea --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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" diff --git a/.github/workflows/feed-to-social-media.yml b/.github/workflows/feed-to-social-media.yml index b5ce161..89cd6e9 100644 --- a/.github/workflows/feed-to-social-media.yml +++ b/.github/workflows/feed-to-social-media.yml @@ -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 @@ -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 @@ -26,6 +26,6 @@ jobs: # Bluesky settings blueskyEnable: true blueskyAppPassword: ${{ secrets.BSKY_APP_PASSWORD }} - blueskyHandle: '9renpoto.bsky.social' - blueskyOwnerHandle: '9renpoto.bsky.social' - blueskyOwnerContact: '9renpoto+bsky@gmail.com' + blueskyHandle: "9renpoto.bsky.social" + blueskyOwnerHandle: "9renpoto.bsky.social" + blueskyOwnerContact: "9renpoto+bsky@gmail.com" diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 168b873..f6bb40e 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -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" diff --git a/deno.json b/deno.json index ff14553..3ce666c 100644 --- a/deno.json +++ b/deno.json @@ -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",