Skip to content

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

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 #11

Workflow file for this run

name: publish
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup snaps
run: |
sudo snap install jq
sudo snap install yq
- uses: actions/checkout@master
- name: Build document in the Metanorma container
env:
METANORMA_DOCKER: metanorma/metanorma:latest
run: |
make clean all publish
- uses: actions/upload-artifact@master
with:
name: published
path: published
deploy-gh-pages:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
needs: build
steps:
- uses: actions/checkout@master
- uses: actions/download-artifact@master
with:
name: published
- name: deploy-to-gh
env:
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
GH_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
run: |
curl -L https://raw.githubusercontent.com/metanorma/metanorma-build-scripts/master/ghactions-deploy-to-gh-pages.sh | bash