slides.fleaz.me/.forgejo/workflows/deploy.yaml
fleaz 00b974733b
Some checks failed
Deployment / build (push) Failing after 1m57s
debug ci
2025-03-16 03:08:22 +01:00

47 lines
1.2 KiB
YAML

name: Deployment
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: docker
container: catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.23
- name: Install dependencies
run: |
apt update && apt install -y pkg-config libmagickwand-dev imagemagick gcc libc-dev ghostscript
- name: Patch ghostscript thanks to CVE-2018-16509
run: |
sed -i '$i<policy domain="coder" rights="read | write" pattern="PDF" />' /etc/ImageMagick-6/policy.xml
- name: Build
run: |
ls -laR
mkdir {previews,dist}
ls -laR
go run main.go
ls -laR
mv index.html dist/
mv previews/ dist/
mv talks/ dist/
- uses: https://github.com/jakejarvis/s3-sync-action@master
with:
args: --delete
env:
AWS_S3_BUCKET: "slides.fleaz.me"
AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_KEY }}
AWS_S3_ENDPOINT: "https://s3.fleaz.me"
SOURCE_DIR: 'dist'