Skip to content

Update update_frontend_image.md #459

Update update_frontend_image.md

Update update_frontend_image.md #459

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
repository_dispatch:
types: dispatch-from-oc.app
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
# runs-on: self-hosted
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Clone sources
run: |
rm -rf ..?* .[!.]* *
git clone "https://github.com/abcdesktopio/docs.git" .
- uses: actions/setup-python@v2
with:
python-version: 3.x
- name : install material
run: pip install mkdocs-material
- name: Run Makefile
run: make docs
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
branch: gh-pages # The branch the action should deploy to.
folder: opsdocs/site # The folder the action should deploy.
# - name: push data to pages
# run: |
# git config --global user.name "abcdesktop.workflow"
# git clone "https://github.com/abcdesktopio/abcdesktopio.github.io.git"
# echo 'ls -la opsdocs/site'
# ls -la opsdocs/site
# cp -r opsdocs/site/* abcdesktopio.github.io
# cp CNAME abcdesktopio.github.io
# cp LICENSE abcdesktopio.github.io
# cd abcdesktopio.github.io
# git add *
# git commit -m 'pushed from abcdesktopio/docs' -a
# git -c http.extraheader="Authorization: basic ${{ secrets.TOKEN }}" push
#
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.TOKEN_DISPATCH }}
repository: abcdesktopio/abcdesktopio.github.io
event-type: dispatch-from-docs