summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Paul <n@nc0.fr>2023-06-30 13:26:21 +0200
committerNicolas Paul <n@nc0.fr>2023-06-30 13:26:21 +0200
commit61eb492795f07cb09add0d9c3f2f38f072be5951 (patch)
tree19c7aaf7afce9eea66db3b762ad3a04933bc349a
parentf06134b3ba73430d4efde3246c0f8da369b10da5 (diff)
Add documentation site
-rw-r--r--.github/workflows/ci.yml21
-rw-r--r--README.md6
-rw-r--r--website/404.html5
-rw-r--r--website/index.html6
4 files changed, 33 insertions, 5 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e1e7693..cb17371 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,6 +6,7 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
+ timeout-minutes: 4
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
@@ -17,6 +18,7 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
+ timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
@@ -27,6 +29,7 @@ jobs:
go run ../cmd/svgu/svgu.go -o=dst -v -c=DOMAINS.star
build:
name: Build
+ timeout-minutes: 5
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
@@ -37,4 +40,20 @@ jobs:
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- - run: go build -v -o svgu.o cmd/svgu/svgu.go \ No newline at end of file
+ - run: go build -v -o svgu.o cmd/svgu/svgu.go
+ deploy:
+ name: Deploy
+ runs-on: ubuntu-latest
+ needs:
+ - build
+ timeout-minutes: 2
+ steps:
+ - uses: actions/checkout@v3
+ - uses: cloudflare/pages-action@v1
+ with:
+ apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
+ accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
+ projectName: svgu-nc0-fr
+ directory: dst
+ branch: master # production-branch
+ wranglerVersion: "3"
diff --git a/README.md b/README.md
index 77529dc..ff7b188 100644
--- a/README.md
+++ b/README.md
@@ -35,10 +35,8 @@ This will generate a `dst` directory containing the files to publish.
- [Getting started](doc/getting-started.md)
- [Reference documentation](doc/references.md)
-- [Bug tracker](https://todo.sr.ht/~n1c00o/svgu)
-- [Mailing list](https://lists.sr.ht/~n1c00o/svgu)
-- [Source code](https://git.sr.ht/~n1c00o/svgu)
-- [Project page](https://sr.ht/~n1c00o/svgu)
+- [Bug tracker](https://github.com/nseezero/svgu/issues)
+- [Source code](https://github.com/nseezero/svgu)
## License
diff --git a/website/404.html b/website/404.html
new file mode 100644
index 0000000..bc532b9
--- /dev/null
+++ b/website/404.html
@@ -0,0 +1,5 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+<title>SVGU</title>
+<p>404.
diff --git a/website/index.html b/website/index.html
new file mode 100644
index 0000000..a0c8bd1
--- /dev/null
+++ b/website/index.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<meta http-equiv="refresh" content="0; url=https://github.com/nseezero/svgu">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+<title>SVGU</title>
+<p>Redirecting to <a href="https://github.com/nseezero/svgu">here</a>.