Don't deploy to Netlify

This commit is contained in:
fleaz 2024-05-09 15:58:18 +02:00
parent 45af30496a
commit a0e98b81c1
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083
6 changed files with 44 additions and 13 deletions

36
.github/workflows/deploy.yaml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Deployment
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Build
run: |
sudo apt install pkg-config libmagickwand-dev imagemagick gcc libc-dev
mkdir {previews,dist}
go run main.go
mv index.html dist/
mv previews/ dist/
mv talks/ dist/
- uses: jakejarvis/s3-sync-action@master
with:
args: --delete
env:
AWS_S3_BUCKET: "slidec.fleaz.me"
AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_KEY }}
AWS_S3_ENDPOINNT: "https://s3.fleaz.me"
SOURCE_DIR: 'dist'

View file

@ -1,3 +0,0 @@
{
"siteId": "d76a4d4a-6df9-4f82-8e13-6e71b30fce8f"
}

6
go.mod
View file

@ -1,8 +1,8 @@
module git.rainbownerds.de/felix/slides.fleaz.me
go 1.13
go 1.21
require (
gopkg.in/gographics/imagick.v2 v2.5.0
gopkg.in/gographics/imagick.v3 v3.2.0
gopkg.in/gographics/imagick.v2 v2.6.4
gopkg.in/gographics/imagick.v3 v3.5.3
)

8
go.sum
View file

@ -1,4 +1,4 @@
gopkg.in/gographics/imagick.v2 v2.5.0 h1:3wOeg/IgtagJtveISUaX9A3F/L/5PxaFHkAz5AzgbgA=
gopkg.in/gographics/imagick.v2 v2.5.0/go.mod h1:of4TbGX8yMcpgWkWFjha7FsOFr+NjOJ5O1qtKU27Yj0=
gopkg.in/gographics/imagick.v3 v3.2.0 h1:eUwlkCw2fa20OGu47G39Im8c50S9n/CVkh8PwtOKExA=
gopkg.in/gographics/imagick.v3 v3.2.0/go.mod h1:HbW83cYCl1jftZi3B/VZpVqsuNi4vW7qUrghjxBiT+8=
gopkg.in/gographics/imagick.v2 v2.6.4 h1:H7UgF2ZAdV85sMB9YU2c6r3dpp9SP4N6UF+bG3OK728=
gopkg.in/gographics/imagick.v2 v2.6.4/go.mod h1:/QVPLV/iKdNttRKthmDkeeGg+vdHurVEPc8zkU0XgBk=
gopkg.in/gographics/imagick.v3 v3.5.3 h1:Ho8/2Uu76Y1Z5P65dUBhh5ZeKS3ZcvYH12amWZNpSFA=
gopkg.in/gographics/imagick.v3 v3.5.3/go.mod h1:+Q9nyA2xRZXrDyTtJ/eko+8V/5E7bWYs08ndkZp8UmA=

View file

@ -7,7 +7,7 @@ import (
"path/filepath"
"regexp"
"gopkg.in/gographics/imagick.v3/imagick"
"gopkg.in/gographics/imagick.v2/imagick"
)
type Talk struct {

View file

@ -1,2 +0,0 @@
[build]
publish = "dist"