page migrated to cybersecuritystream.github.io #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | |
on: | |
push: | |
branches: [ master, main ] | |
pull_request: | |
branches: [ master, main ] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install | |
run: sudo gem install asciidoctor | |
- name: README to HTML | |
run: | | |
mkdir build | |
mkdir build/images | |
cp images/*.png build/images | |
asciidoctor README.adoc -o index.html -D build | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@4.2.0 | |
with: | |
branch: gh-pages | |
folder: build |