Skip to content

Commit

Permalink
Merge pull request #20 from yoshixmk/develop
Browse files Browse the repository at this point in the history
Develop: fix CI and upgrade versions
  • Loading branch information
yoshixmk authored Aug 16, 2021
2 parents a0a9f23 + 827daec commit 8288e5a
Show file tree
Hide file tree
Showing 7 changed files with 2,305 additions and 413 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@ jobs:
- name: Setup deno
uses: denolib/setup-deno@v2
with:
deno-version: v1.8.0
deno-version: v1.13.0

- name: Build
run: |
export DENO_INSTALL="/home/runner/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
deno --version
deno run --allow-net --allow-write --allow-read --allow-env ./mod.ts -u $USERNAME -t $TOKEN -f markdown
deno install --unstable --allow-read --allow-write --allow-net --allow-run -n pagic https://raw.githubusercontent.com/xcatliu/pagic/v1.2.0/mod.ts
pagic build
deno install --unstable --allow-read --allow-write --allow-net --allow-run -n pagic https://raw.githubusercontent.com/xcatliu/pagic/v1.4.0/mod.ts
echo 'pagic build'
./run-ci.sh
env:
USERNAME: ${{ secrets.USERNAME }}
TOKEN: ${{ secrets.TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ship.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Deno
uses: denolib/setup-deno@v2
with:
deno-version: v1.8.x
deno-version: v1.13.x

- name: Publish module
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ After processing according to the ranking logic below, limit to only the necessa

## Hosting using Markdown format
``` Shell
$ deno run --unstable --allow-read --allow-write --allow-net https://raw.githubusercontent.com/xcatliu/pagic/v1.2.0/mod.ts build --serve --watch
$ deno run --unstable --allow-read --allow-write --allow-net https://raw.githubusercontent.com/xcatliu/pagic/v1.4.0/mod.ts build --serve --watch
```

## 429 Too Many Requests ??
Expand Down
10 changes: 5 additions & 5 deletions deps.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import coffee from "https://deno.land/x/coffee@1.0.0/mod.ts";
export { encode } from "https://deno.land/std@0.89.0/encoding/base64.ts";
export { encode } from "https://deno.land/std@0.104.0/encoding/base64.ts";
export { link, Markdown } from "https://deno.land/x/deno_markdown@0.3/mod.ts";

export { green, red } from "https://deno.land/std@0.89.0/fmt/colors.ts";
export { green, red } from "https://deno.land/std@0.104.0/fmt/colors.ts";
export { coffee };

export { parse } from "https://deno.land/std@0.89.0/flags/mod.ts";
export type { Args } from "https://deno.land/std@0.89.0/flags/mod.ts";
export { parse } from "https://deno.land/std@0.104.0/flags/mod.ts";
export type { Args } from "https://deno.land/std@0.104.0/flags/mod.ts";

// Test dependencies
export {
assert,
assertEquals,
} from "https://deno.land/std@0.89.0/testing/asserts.ts";
} from "https://deno.land/std@0.104.0/testing/asserts.ts";
2,656 changes: 2,262 additions & 394 deletions examples/README.md

Large diffs are not rendered by default.

36 changes: 27 additions & 9 deletions pagic.config.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,38 @@
// @deno-types="https://cdn.pagic.org/@types/react@16.9.50/index.d.ts"
import React from "https://dev.jspm.io/react@16.14.0";
import React from "https://dev.jspm.io/react@16.13.1";

export default {
root: "/deno-x-ranking/",
srcDir: "./examples",
outDir: "dist",
include: undefined,
exclude: [
// Dot files
"**/.*",
"pagic.config.tsx",
],
root: "/deno-x-ranking/",
theme: "docs",
plugins: ["ga"],
watch: false,
serve: false,
port: 8000,
title: "Deno X ranking",
github: "https://github.com/yoshixmk/deno-x-ranking",
head: <>
<link rel="stylesheet" href="/deno-x-ranking/custom.css" />
<script async defer type="text/javascript" src="/deno-x-ranking/custom.js">
</script>
<link rel="icon" type="" href="/deno-x-ranking/favicon.ico" />
<link rel="apple-touch-icon" href="/deno-x-ranking/favicon-192.png"></link>
</>,
head: (
<>
<link rel="stylesheet" href="/deno-x-ranking/custom.css" />
<script
async
defer
type="text/javascript"
src="/deno-x-ranking/custom.js"
>
</script>
<link rel="icon" type="" href="/deno-x-ranking/favicon.ico" />
<link rel="apple-touch-icon" href="/deno-x-ranking/favicon-192.png">
</link>
</>
),
nav: [
{
text: "Tegebu",
Expand Down
5 changes: 5 additions & 0 deletions run-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

timeout -sKILL 90 pagic build

true

0 comments on commit 8288e5a

Please sign in to comment.