-
Notifications
You must be signed in to change notification settings - Fork 21
48 lines (46 loc) · 1.4 KB
/
publish.yml
File metadata and controls
48 lines (46 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Publish
on:
push:
tags:
- "v*.*.*"
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.2
bundler-cache: true
- name: Test
run: bundle exec rake
- name: Checkout xs3p
uses: actions/checkout@v6
with:
repository: macintoshpie/xs3p
path: xs3p
- name: Build HTML
run: |
sudo apt install xsltproc
xsltproc --output index.html xs3p/xs3p.xsl BuildingSync.xsd
stat index.html
- name: Build Data Dictionary
run: bundle exec rake generate_data_dictionary
- name: Build Changelog
run: |
# grab the most recent version section from the changelog
python -c 'print(open("CHANGELOG.md").read().split("## ")[1])' > ${{ github.workflow }}-CHANGELOG.md
cat ${{ github.workflow }}-CHANGELOG.md
- name: Release with Artifacts
uses: softprops/action-gh-release@v2
with:
files: |
BuildingSync.xsd
index.html
docs/DataDictionary.xlsx
docs/enumerations.json
docs/geometry_reference.pdf
body_path: ${{ github.workflow }}-CHANGELOG.md
prerelease: ${{ contains(github.ref, 'pr') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}