Skip to content

Commit

Permalink
Merge pull request #728 from carlwilson/master
Browse files Browse the repository at this point in the history
FEAT: Acknowledgement page
  • Loading branch information
shsdev authored Feb 14, 2024
2 parents 8d3e31d + 5ee642e commit d8b3a87
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 54 deletions.
50 changes: 33 additions & 17 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,40 @@ jobs:
with:
submodules: recursive
- if: github.event.release != null
name: Substitute env vars in files
uses: chris-peterson/virgo@v1
env:
RELEASE_DATE: ${{ github.event.release.published_at }}
RELEASE_VERSION: ${{ github.event.release.tag_name }}
with:
templates: "specification/metadata.md"
name: set release vars from release event
run: |
echo "LONG_DATE=${{ github.event.release.published_at }}" >> $GITHUB_ENV
echo "LONG_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
- if: github.event.release == null
name: Get previous tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
name: Get previous release
id: previousrelease
uses: InsonusK/get-latest-release@v1.0.1
with:
fallback: "v2.1.0"
myToken: ${{ github.token }}
exclude_types: draft|prerelease
view_top: 1
- if: github.event.release == null
name: Substitute env vars in files
name: set release vars from previous release
run: |
echo "LONG_DATE=${{ steps.previousrelease.outputs.created_at }}" >> $GITHUB_ENV
echo "LONG_VERSION=${{ steps.previousrelease.outputs.tag_name }}" >> $GITHUB_ENV
- name: Cut release date
uses: bhowell2/[email protected]
id: cut_release_date
with:
value: ${{ env.LONG_DATE }}
length_from_start: 10
- name: Cut release versopm
uses: bhowell2/[email protected]
id: cut_release_version
with:
value: ${{ env.LONG_VERSION }}
index_of_str: "v"
- name: Substitute env vars in files
uses: chris-peterson/virgo@v1
env:
RELEASE_DATE: ${{ steps.previoustag.outputs.timestamp }}
RELEASE_VERSION: ${{ steps.previoustag.outputs.tag }}
RELEASE_DATE: ${{ steps.cut_release_date.outputs.substring }}
RELEASE_VERSION: ${{ steps.cut_release_version.outputs.substring }}
with:
templates: "specification/metadata.md"
- name: Build the spec-publisher project & produce site artifacts
Expand All @@ -58,7 +73,7 @@ jobs:
java -jar target/mets-profile-proc.jar ../profile/E-ARK-CSIP.xml
- name: Run Docker job for site publication
run: |
docker run --rm -v "$PWD:/source" -u "$(id -u):$(id -g)" --entrypoint /source/create-site.sh eark4all/spec-pdf-publisher
docker run --rm -v "$PWD:/source" --entrypoint /source/create-site.sh eark4all/spec-pdf-publisher
ls -alh ./docs
- name: Build the spec-publisher project & produce PDF artifacts
run: |
Expand All @@ -68,14 +83,15 @@ jobs:
java -jar target/mets-profile-proc.jar ../profile/E-ARK-CSIP.xml
- name: Run Docker job for PDF publication
run: |
docker run --rm -v "$PWD:/source" -u "$(id -u):$(id -g)" --entrypoint /source/create-pdf.sh eark4all/spec-pdf-publisher
docker run --rm -v "$PWD:/source" --entrypoint /source/create-pdf.sh eark4all/spec-pdf-publisher
ls -alh ./docs
ls -alh ./docs/pdf
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build with Jekyll docker box
run: |
mkdir _site
docker run --rm -v "$PWD"/docs:/usr/src/app -v "$PWD"/_site:/_site -u "$(id -u):$(id -g)" starefossen/github-pages jekyll build -d /_site
docker run --rm -v "$PWD"/docs:/usr/src/app -v "$PWD"/_site:/_site starefossen/github-pages jekyll build -d /_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1

Expand Down
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion create-pdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ pandoc --from markdown \
--listings \
--table-of-contents \
--metadata-file "../pdf-publisher/pandoc/metadata.yaml" \
--include-before-body "../eu-ack.pdf" \
--include-before-body "./preface.tex" \
--include-after-body "./postface.tex" \
--number-sections \
Expand Down

0 comments on commit d8b3a87

Please sign in to comment.