Revert "move to github pages and replace gitea with cgit"

This commit is contained in:
Salar Rahmanian 2023-04-19 00:40:33 -07:00 committed by GitHub
parent a448098361
commit 2ea015b4f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 16 deletions

View file

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

View file

@ -1,28 +1,32 @@
name: github pages
name: Deploy
on:
push:
branches:
- main # Set a branch that will trigger a deployment
- master
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.108.0'
hugo-version: '0.104.3'
extended: true
- name: Build
- name: Hugo Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
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