File tree Expand file tree Collapse file tree 2 files changed +42
-1
lines changed
Expand file tree Collapse file tree 2 files changed +42
-1
lines changed Original file line number Diff line number Diff line change 1+ name : " Create API docs"
2+ on :
3+ push :
4+ branches : [master]
5+ workflow_dispatch :
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
19+ - name : Install Crystal
20+ uses : crystal-lang/install-crystal@v1
21+
22+ - name : Build
23+ run : shards && crystal docs
24+
25+ - name : Upload
26+ uses : actions/upload-pages-artifact@v3
27+ with :
28+ path : ./docs
29+
30+ deploy :
31+ if : github.event_name == 'push' && github.ref_name == github.event.repository.default_branch
32+ needs : build
33+ runs-on : ubuntu-latest
34+ steps :
35+ - name : Deploy to Pages
36+ id : deployment
37+ uses : actions/deploy-pages@v2
38+
39+ environment :
40+ name : github-pages
41+ url : ${{ steps.deployment.outputs.page_url }}
Original file line number Diff line number Diff line change 1- # html_builder [ ![ Build Status] ( https://travis-ci.org /crystal-lang/html_builder.svg )] ( https://travis-ci.org/crystal-lang/html_builder )
1+ # ` html_builder ` ![ Build Status] ( https://github.com /crystal-lang/html_builder/actions/workflows/weekly.yml/badge.svg )
22
33DSL for creating HTML programatically (extracted from Crystal's standard library).
44
You can’t perform that action at this time.
0 commit comments