Skip to content

Document Restructure #12

Document Restructure

Document Restructure #12

Workflow file for this run

# Auto-generated by Cimas: Do not edit it manually!
# See https://github.com/metanorma/cimas
name: docker
on:
push:
branches: [ master, main ]
pull_request:
paths-ignore:
- .gitlab-ci.yml
- .github/workflows/test.yml
- .github/workflows/generate.yml
repository_dispatch:
types: [ metanorma/metanorma-docker ]
jobs:
test-docker:
runs-on: ubuntu-latest
container: docker://metanorma/mn
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.METANORMA_CI_PAT_TOKEN || github.token }}
submodules: true
- uses: actions/cache@v2
with:
path: /config/fonts
key: fontist-docker
restore-keys: fontist-docker
- uses: actions/cache@v2
with:
path: ~/.metanorma-ietf-workgroup-cache.json
key: metanorma-ietf-workgroup-cache
restore-keys: metanorma-ietf-workgroup-cache
- uses: metanorma/metanorma-build-scripts/gh-rubygems-setup-action@master
with:
token: ${{ secrets.METANORMA_CI_PAT_TOKEN }}
- run: |
curl -L --retry 3 https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/gemfile-to-bundle-add.sh | bash
- uses: actions-mn/cli/site-gen@main
with:
agree-to-terms: true
- uses: actions/upload-artifact@master
with:
name: site
path: site
deploy-gh-pages:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: test-docker
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v1
with:
name: site
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ github.token }}
publish_dir: ./site
force_orphan: true
user_name: ${{ github.actor }}
user_email: ${{ format('{0}@users.noreply.github.com', github.actor) }}
commit_message: "${{ format('Deploy to GitHub Pages: {0}', github.sha) }}"
- uses: kolpav/purge-artifacts-action@v1
with:
token: ${{ github.token }}
expire-in: 0