Compare commits
2 Commits
272479c244
...
9b5ed0084f
| Author | SHA1 | Date | |
|---|---|---|---|
| 9b5ed0084f | |||
| d2ee5c706c |
@@ -0,0 +1,35 @@
|
|||||||
|
name: Build marp presentation
|
||||||
|
on: push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: build marp presentation
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: restore cache
|
||||||
|
id: restore-cache
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: /usr/local/lib/node_modules
|
||||||
|
key: node-marp-installation
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: install marp
|
||||||
|
if: steps.restore-cache.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
|
npm install -g @marp-team/marp-cli@latest
|
||||||
|
- name: cache marp installation
|
||||||
|
if: steps.restore-cache.outputs.cache-hit != 'true'
|
||||||
|
uses: actions/cache/save@v3
|
||||||
|
with:
|
||||||
|
path: /usr/local/lib/node_modules
|
||||||
|
key: node-marp-installation
|
||||||
|
- name: build presentation
|
||||||
|
working-directory: ./presentation
|
||||||
|
run: |
|
||||||
|
npx @marp-team/marp-cli@latest presentation.md -o index.html
|
||||||
|
- name: upload presentation folder
|
||||||
|
uses: https://gitea.com/actions/gitea-upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: presentation.zip
|
||||||
|
path: presentation/
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
name: Run script on commit
|
|
||||||
|
|
||||||
on:
|
|
||||||
push: {}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
run-bash:
|
|
||||||
runs-on: ubuntu-latest # use the runner label you have
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Make script executable
|
|
||||||
run: |
|
|
||||||
chmod +x ./scripts/test.sh
|
|
||||||
|
|
||||||
- name: Run script on current tree
|
|
||||||
run: |
|
|
||||||
./scripts/test.sh
|
|
||||||
|
|
||||||
- uses: https://gitea.com/actions/gitea-upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: presentation
|
|
||||||
path: presentation/index.html
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
apt update && apt install -y nodejs
|
|
||||||
|
|
||||||
cd presentation
|
|
||||||
npx @marp-team/marp-cli@latest presentation.md -o index.html
|
|
||||||
Reference in New Issue
Block a user