move to github pages and replace gitea with cgit

This commit is contained in:
Salar Rahmanian 2023-04-19 00:29:31 -07:00
parent 8643b7f5b1
commit 5b6cedab95
5 changed files with 16 additions and 24 deletions

View file

@ -12,7 +12,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.104.3'
hugo-version: '0.108.0'
extended: true
- name: Hugo Build

View file

@ -1,32 +1,28 @@
name: Deploy
name: github pages
on:
push:
branches:
- master
- main # Set a branch that will trigger a deployment
jobs:
deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.104.3'
hugo-version: '0.108.0'
extended: true
- name: Hugo Build
- name: Build
run: hugo --minify
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Deploy to S3
run: hugo deploy --maxDeletes -1 --invalidateCDN
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public