ci: Fix typo

This commit is contained in:
fleaz 2024-05-22 22:21:39 +02:00
parent 55fa1b6db4
commit 2a3a1992b8
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083
2 changed files with 1 additions and 33 deletions

View file

@ -32,5 +32,5 @@ jobs:
AWS_S3_BUCKET: "slides.fleaz.me"
AWS_ACCESS_KEY_ID: ${{ secrets.ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SECRET_KEY }}
AWS_S3_ENDPOINNT: "https://s3.fleaz.me"
AWS_S3_ENDPOINT: "https://s3.fleaz.me"
SOURCE_DIR: 'dist'

View file

@ -1,32 +0,0 @@
cache:
untracked: true
paths:
- node_modules/
stages:
- build
- deploy
build:
stage: build
image: golang:1-alpine
artifacts:
paths:
- dist
script:
- apk add --no-cache imagemagick pkgconfig imagemagick-dev gcc libc-dev
- rm -rf previews && mkdir -p previews
- rm -rf dist && mkdir -p dist
- go run main.go
- mv index.html dist/
- mv previews/ dist/
- mv talks/ dist/
deploy:
stage: deploy
image: node:16-alpine
script:
- npm i -g netlify-cli
- netlify deploy --site $NETLIFY_SITE_ID --auth $NETLIFY_AUTH_TOKEN --prod
rules:
- if: '$CI_COMMIT_BRANCH == "master"'