File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish documentation
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ ref :
7+ required : true
8+ default : main
9+ type : string
10+
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ concurrency :
17+ group : publish
18+ cancel-in-progress : true
19+
20+ jobs :
21+ publish :
22+ environment :
23+ name : github-pages
24+ url : ${{ steps.deployment.outputs.page_url }}
25+ runs-on : ubuntu-latest
26+ steps :
27+ - uses : actions/checkout@v3
28+ with :
29+ repository : hspec/hspec
30+ ref : ${{ inputs.ref }}
31+
32+ - uses : actions/setup-python@v4
33+ with :
34+ python-version : 2
35+
36+ - uses : ruby/setup-ruby@v1
37+ with :
38+ bundler-cache : true
39+ working-directory : doc
40+
41+ - name : Build documentation
42+ run : |
43+ rm cabal.project
44+ cd doc
45+ cabal update
46+ cabal install HUnit QuickCheck hspec hspec-contrib --lib --package-env .
47+ bundle exec jekyll build
48+
49+ - uses : actions/upload-pages-artifact@v1
50+ with :
51+ path : doc/_site/
52+ - uses : actions/deploy-pages@v1
53+ id : deployment
You can’t perform that action at this time.
0 commit comments