Skip to content

Commit

Permalink
Merge pull request #38 from ndw/cleanup
Browse files Browse the repository at this point in the history
Update the grammar builds for 3.1
  • Loading branch information
ndw authored Sep 1, 2024
2 parents b50b712 + 376926b commit 9466f3b
Show file tree
Hide file tree
Showing 78 changed files with 14,661 additions and 146 deletions.
47 changes: 0 additions & 47 deletions .circleci/config.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .circleci/publish.sh

This file was deleted.

90 changes: 90 additions & 0 deletions .github/workflows/build-grammar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: build-specs
on: push
jobs:
check_branch:
runs-on: ubuntu-latest
outputs:
branch: ${{ steps.check_step.outputs.branch }}
reponame: ${{ steps.check_step.outputs.reponame }}
tag: ${{ steps.check_step.outputs.tag }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get branch name, etc.
id: check_step
run: |
raw=${{ github.repository }}
reponame=${raw##*/}
echo "reponame=$reponame" >> $GITHUB_STATE
raw=$(git branch -r --contains ${{ github.ref }})
branch=${raw##*/}
echo "branch=$branch" >> $GITHUB_STATE
tag=""
if [ ${{ github.ref_type }} = "tag" ]; then
tag=${{ github.ref_name }}
echo "Running in $reponame on $branch for $tag"
else
echo "Running in $reponame on $branch"
fi
echo "tag=$tag" >> $GITHUB_STATE
build-and-deploy:
runs-on: ubuntu-latest
needs: check_branch
env:
HAVE_ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN != '' }}
DIFFURI: ${{ secrets.DIFFURI }}
DIFFPW: ${{ secrets.DIFFPW }}
CIWORKFLOW: yes
CI_SHA1: ${{ github.sha }}
CI_BUILD_NUM: ${{ github.run_number }}
CI_PROJECT_USERNAME: ${{ github.repository_owner }}
CI_PROJECT_REPONAME: ${{ needs.check_branch.outputs.reponame }}
CI_BRANCH: ${{ needs.check_branch.outputs.branch }}
CI_TAG: ${{ needs.check_branch.outputs.tag }}
steps:
- name: Checkout this repository
uses: actions/checkout@v4

- name: Build the grammars
run: |
./gradlew
- name: Deploy schemas to gh-pages
if: ${{ env.HAVE_ACCESS_TOKEN == 'true' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/relax-ng
token: ${{ secrets.ACCESS_TOKEN }}
branch: gh-pages
target-folder: /relax-ng

- name: Deploy core schema libraries to gh-pages
if: ${{ env.HAVE_ACCESS_TOKEN == 'true' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/lib
token: ${{ secrets.ACCESS_TOKEN }}
branch: gh-pages
target-folder: /lib

- name: Deploy XProc 3.0 step library to gh-pages
if: ${{ env.HAVE_ACCESS_TOKEN == 'true' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/dist/3.0
token: ${{ secrets.ACCESS_TOKEN }}
branch: gh-pages
target-folder: /xproc-3.0

- name: Deploy XProc 3.1 step library to gh-pages
if: ${{ env.HAVE_ACCESS_TOKEN == 'true' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/dist/3.1
token: ${{ secrets.ACCESS_TOKEN }}
branch: gh-pages
target-folder: /xproc-3.0
Loading

0 comments on commit 9466f3b

Please sign in to comment.