Skip to content

Commit ce281c8

Browse files
authored
DEV: publish GitHub Pages during release workflow (#363)
closes #363
1 parent 6642cb1 commit ce281c8

37 files changed

Lines changed: 31 additions & 56060 deletions

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The project would especially benefit from the following types of suggestions:
3434

3535
The following scripts can be run from the command line:
3636

37-
- `npm run build`: convert YAML > JSON, regenerate project documentation
37+
- `npm run build`: convert YAML > JSON
3838
- `npm run convert`: convert the YAML schemas to JSON
3939
- `npm run docs`: regenerate the project documentation
4040
- `npm test`: run tests

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@
3232
- [ ] **Run the tests** (`npm test`) and fix issues that arise. If you find an issue that is unrelated to the one you are working on, open a new issue for it.
3333

3434
- [ ] **Update the project documentation** (`README.md`, `CONTRIBUTING.md`, etc.) to reflect the changes you made, if applicable.
35+
36+
- [ ] **Build the project documentation** (`npm run docs`)

.github/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<!-- This readme is targeted at general users. The developer readme is located in the project root. -->
2+
23
# The Data Format for Digital Linguistics (Daffodil)
34

45
## Introduction
@@ -17,6 +18,7 @@ Please consider citing this specification in scholarly articles using this repos
1718

1819
> Hieber, Daniel W. 2020. _Data Format for Digital Linguistics_. DOI:[10.5281/zenodo.1438589][Zenodo]
1920
21+
[![GitHub stars](https://img.shields.io/github/stars/digitallinguistics/spec.svg?style=social&label=Stars)][GitHub]
2022
[![npm downloads](https://img.shields.io/npm/dt/@digitallinguistics/spec.svg)][npm]
2123
[![DOI](https://zenodo.org/badge/50221632.svg)][Zenodo]
2224
[![license](https://img.shields.io/github/license/digitallinguistics/spec.svg)][License]
@@ -196,7 +198,7 @@ This repository is maintained by [Daniel W. Hieber][Me] ([@dwhieb][19]).
196198
[Contributing]: https://github.com/digitallinguistics/spec/blob/master/.github/CONTRIBUTING.md
197199
[Developer]: https://github.com/digitallinguistics/spec/blob/master/README.md
198200
[GitHub]: https://github.com/digitallinguistics/spec
199-
[IGL]: https://en.wikipedia.org/wiki/Interlinear_gloss
201+
[IGL]: https://en.wikipedia.org/wiki/Interlinear_gloss
200202
[Issues]: https://github.com/digitallinguistics/spec/issues
201203
[JSON]: http://json.org/
202204
[License]: https://github.com/digitallinguistics/spec/blob/master/.github/LICENSE.md

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,23 @@ jobs:
2626
- name: run tests
2727
run: npm test
2828

29+
publish-gh-pages:
30+
needs: build
31+
runs-on: ubuntu-latest
32+
steps:
33+
34+
- name: checkout
35+
uses: actions/checkout@v2
36+
37+
- name: create docs
38+
run: npm run docs
39+
40+
- name: publish GitHub pages
41+
uses: peaceiris/actions-gh-pages@v3
42+
with:
43+
github_token: ${{ GITHUB_TOKEN }}
44+
publish_dir: ./docs
45+
2946
publish-dlx:
3047
needs: build
3148
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,4 @@ node_modules/
217217

218218
# custom
219219
nodemon.json
220+
docs
File renamed without changes.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<!-- This readme is targeted at developers. The general user readme is in /.github/README.md -->
2+
23
# Data Format for Digital Linguistics (Daffodil)
34

45
The DLx data format is a standardized, human-readable, web-compatible format for storing linguistic data, following best practices for managing data on the modern web. It is part of a broader project called [Digital Linguistics][About] (DLx), which has the goal of creating web tools for managing linguistic data. This project will be useful for anyone who manages a linguistic database.
@@ -17,7 +18,7 @@ Please consider citing this specification in scholarly articles using this repos
1718
[![npm downloads](https://img.shields.io/npm/dt/@digitallinguistics/spec.svg)][npm]
1819
[![GitHub issues](https://img.shields.io/github/issues/digitallinguistics/spec.svg)][Issues]
1920
[![npm version](https://badge.fury.io/js/%40digitallinguistics%2Fspec.svg)][npm]
20-
[![Build Status](https://travis-ci.org/digitallinguistics/spec.svg?branch=master)][Travis]
21+
[![Build Status](https://github.com/digitallinguistics/spec/workflows/test/badge.svg)][Actions]
2122
[![license](https://img.shields.io/github/license/digitallinguistics/spec.svg)][License]
2223
[![DOI](https://zenodo.org/badge/50221632.svg)][Zenodo]
2324

@@ -177,6 +178,7 @@ The DLx format is also compatible with the [Newline Delimited JSON (NDJSON) form
177178
Tests are run using [Jasmine][Jasmine] in Node.js. Run them from the command line using `npm test`.
178179

179180
[About]: https://digitallinguistics.io/about
181+
[Actions]: https://github.com/digitallinguistics/spec/actions
180182
[ajv]: https://www.npmjs.com/package/ajv
181183
[Contributing]: https://github.com/digitallinguistics/spec/blob/master/.github/CONTRIBUTING.md
182184
[DateTime]: https://www.w3.org/TR/NOTE-datetime
@@ -188,7 +190,6 @@ Tests are run using [Jasmine][Jasmine] in Node.js. Run them from the command lin
188190
[NDJSON]: http://ndjson.org/
189191
[npm]: https://www.npmjs.com/package/@digitallinguistics/spec
190192
[JSON Schema]: http://json-schema.org/
191-
[Travis]: https://travis-ci.org/digitallinguistics/spec
192193
[UUID]: https://www.uuidgenerator.net/
193194
[Validators]: http://json-schema.org/implementations.html#validators
194195
[Zenodo]: http://doi.org/10.5281/zenodo.594557

0 commit comments

Comments
 (0)