Skip to content

Commit

Permalink
Use dist directory for build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
cmil committed Dec 13, 2024
1 parent 0dd9987 commit 74986b2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./dracor.rng
asset_path: ./dist/dracor.rng
asset_name: dracor-schema-${{ github.event.release.tag_name }}.rng
asset_content_type: application/xml

Expand All @@ -31,7 +31,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./dracor.sch
asset_path: ./dist/dracor.sch
asset_name: dracor-schema-${{ github.event.release.tag_name }}.sch
asset_content_type: application/xml

Expand All @@ -41,6 +41,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./dracor.html
asset_path: ./dist/dracor.html
asset_name: dracor-schema-${{ github.event.release.tag_name }}.html
asset_content_type: text/html
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
.DS_Store
dracor.html
dracor.pdf
dracor.rng
dracor.sch
dracor.odd.xml
dist
10 changes: 6 additions & 4 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ if [ ! -d $BIN ]; then
git submodule update
fi

mkdir -p dist

# Generate full ODD
$BIN/teitoodd --odd dracor.odd dracor.odd.xml
$BIN/teitoodd --odd dracor.odd dist/dracor.odd.xml

# Transform to RNG
$BIN/teitorng --odd dracor.odd.xml dracor.rng
$BIN/teitorng --odd dist/dracor.odd.xml dist/dracor.rng
# Transform to Schematron
$BIN/teitoschematron --odd dracor.odd.xml dracor.sch
$BIN/teitoschematron --odd dist/dracor.odd.xml dist/dracor.sch
# Transform to HTML
$BIN/teitohtml --odd dracor.odd.xml dracor.html
$BIN/teitohtml --odd dist/dracor.odd.xml dist/dracor.html

0 comments on commit 74986b2

Please sign in to comment.