XTheadMae: Rename and cleanup memory attribute extension #120
Workflow file for this run
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: Asciidoctor Build CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Ubuntu packages | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y nodejs build-essential npm ruby make ruby-dev git asciidoctor curl ghostscript libpango1.0-dev libwebp-dev | |
# workaround | |
sudo gem install mathematical -v 1.6.14 | |
sudo gem install asciidoctor | |
sudo gem install asciidoctor-pdf | |
sudo gem install asciidoctor-diagram | |
sudo gem install asciidoctor-bibtex | |
sudo gem install asciidoctor-mathematical | |
sudo gem install coderay | |
sudo npm i npm@latest -g | |
sudo npm install -g bytefield-svg | |
sudo npm install -g wavedrom-cli --unsafe | |
export PATH="$PATH:node_modules/.bin/" | |
- name: Build | |
run: make | |
- name: Upload PDF | |
uses: actions/upload-artifact@v3 | |
with: | |
path: | | |
name: artifact | |
upload-release: | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.event_name == 'release' | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: artifact | |
- name: Upload release asset | |
uses: csexton/release-asset-action@v2 | |
with: | |
pattern: "*" | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
release-url: ${{ github.event.release.upload_url }} |