Skip to content

Commit 07ee858

Browse files
taylorarndtCopilot
andcommitted
feat: add manual Create Release workflow
Triggers only on workflow_dispatch — builds EPUB, Word, and BRF then publishes them as a GitHub Release with download links. Inputs: tag (e.g. v1.0), release name, optional pre-release flag. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4d9d950 commit 07ee858

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Create Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: 'Version tag (e.g. v1.0, v2025.03)'
8+
required: true
9+
release_name:
10+
description: 'Release title (e.g. "March 2026 Workshop Materials")'
11+
required: true
12+
prerelease:
13+
description: 'Mark as pre-release?'
14+
type: boolean
15+
default: false
16+
17+
permissions:
18+
contents: write
19+
20+
jobs:
21+
release:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/checkout@v4
26+
27+
- name: Install Pandoc
28+
run: |
29+
sudo apt-get update -qq
30+
sudo apt-get install -y pandoc
31+
32+
- name: Set up Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: 20
36+
37+
- name: Build EPUB and Word
38+
run: node scripts/build-epub.js
39+
40+
- name: Install liblouis (braille translator)
41+
run: sudo apt-get install -y liblouis-bin python3-louis
42+
43+
- name: Build BRF
44+
run: |
45+
pandoc epub/git-going-with-github.epub -f epub -t plain -o /tmp/book.txt
46+
python3 scripts/build-brf.py /tmp/book.txt epub/git-going-with-github.brf
47+
48+
- name: Create GitHub Release
49+
uses: softprops/action-gh-release@v2
50+
with:
51+
tag_name: ${{ github.event.inputs.tag }}
52+
name: ${{ github.event.inputs.release_name }}
53+
prerelease: ${{ github.event.inputs.prerelease }}
54+
body: |
55+
## Workshop Materials
56+
57+
Download the format that works best for you:
58+
59+
| Format | Best for |
60+
|--------|----------|
61+
| **EPUB** | E-readers, Apple Books, Voice Dream, DAISY players |
62+
| **Word (.docx)** | Windows screen readers (JAWS, NVDA), Microsoft Word |
63+
| **BRF** | Braille displays and embossers (UEB Grade 2) |
64+
files: |
65+
epub/git-going-with-github.epub
66+
epub/git-going-with-github.docx
67+
epub/git-going-with-github.brf

0 commit comments

Comments
 (0)