Skip to content

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows #29

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows #29

Workflow file for this run

name: publish
on:
push:
branches: [ main ]
pull_request:
paths-ignore:
- .gitlab-ci.yml
- .github/workflows/test.yml
- .github/workflows/generate.yml
repository_dispatch:
types: [ metanorma/metanorma-docker ]
jobs:
build:
runs-on: ubuntu-latest
container: docker://metanorma/mn
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: /config/fonts
key: fontist-docker
restore-keys: fontist-docker
- 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/cache@v2
with:
path: relaton
key: relaton-${{ hashFiles('sources/sections/99*') }}
- uses: actions/upload-artifact@master
with:
name: site
path: site
deploy-gh-pages:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v4.1.7
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