This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
Merge pull request #1 from ferrous-systems/add-slides #22
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: Build material | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install tools | |
uses: taiki-e/install-action@v2 | |
with: | |
tool: mdslides@0.3,mdbook@0.4,mdbook-mermaid@0.12 | |
- name: Find slug name | |
run: | | |
slug=$(./describe.sh "${GITHUB_REF}") | |
echo "Building with slug '${slug}'" | |
echo "slug=${slug}" >> "${GITHUB_ENV}" | |
- name: Build the material | |
run: | | |
./build.sh | |
- name: Assemble Artifacts | |
run: | | |
./assemble.sh "${{ env.slug }}" | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
if: ${{success()}} | |
with: | |
name: Artifacts | |
if-no-files-found: error | |
path: | | |
./why-ferrocene-*/ | |
- name: Create and Upload Release | |
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/') | |
id: create_release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: ./why-ferrocene-${{ env.slug }}.zip |