Skip to content

Commit aba88c2

Browse files
committed
Add vt electric to workflow
1 parent 6ddee17 commit aba88c2

File tree

2 files changed

+9
-24
lines changed

2 files changed

+9
-24
lines changed

.github/workflows/docs.yaml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "*"
77

88
jobs:
9-
build:
9+
publish-docs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -21,25 +21,9 @@ jobs:
2121
- name: Generate documentation
2222
run: deno task doc
2323

24-
- name: Upload static files as artifact
25-
id: deployment
26-
uses: actions/upload-pages-artifact@v3
27-
with:
28-
path: docs/
29-
30-
deploy:
31-
needs: build
32-
33-
permissions:
34-
pages: write
35-
id-token: write
36-
37-
environment:
38-
name: github-pages
39-
url: ${{ steps.deployment.outputs.page_url }}
40-
41-
runs-on: ubuntu-latest
42-
steps:
43-
- name: Deploy to GitHub Pages
44-
id: deployment
45-
uses: actions/deploy-pages@v4
24+
- name: Upload the docs to Val Town Electric
25+
run:
26+
deno run -A https://esm.town/v/wolf/VTDocs/cli/mod.ts
27+
env:
28+
ELECTRIC_ROOT_URL: https://vt-docs.val.run
29+
ELECTRIC_MASTER_BEARER: ${{ secrets.ELECTRIC_MASTER_BEARER }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
tinker
2+
docs
23

34
# Created by https://www.toptal.com/developers/gitignore/api/deno
45
# Edit at https://www.toptal.com/developers/gitignore?templates=deno
@@ -16,4 +17,4 @@ tinker
1617

1718
# End of https://www.toptal.com/developers/gitignore/api/deno
1819

19-
.DS_Store
20+
.DS_Store

0 commit comments

Comments
 (0)