slides.sigit.io/.gitea/workflows/publish.yml

32 lines
712 B
YAML
Raw Normal View History

2024-10-06 21:10:35 +00:00
name: Release to Production
on:
push:
branches:
- main
jobs:
build_and_release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install Dependencies
2024-10-09 14:06:07 +00:00
run: |
npm -g install cloudron-surfer
npm install -g @marp-team/marp-cli
2024-10-06 21:10:35 +00:00
2024-10-09 14:02:00 +00:00
- name: Recreate slides
2024-10-09 14:06:07 +00:00
run: marp slides/2024berlin.md -o 2024berlin/index.html --html=true
2024-10-06 21:10:35 +00:00
- name: Release Build
run: |
surfer config --token ${{ secrets.CLOUDRON_SURFER_TOKEN }} --server slides.sigit.io
2024-10-09 14:02:00 +00:00
surfer put ./* / --all -d