From 2ea015b4f85fd18b645660a5e86fd1dd3cf6ac61 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Wed, 19 Apr 2023 00:40:33 -0700 Subject: [PATCH] Revert "move to github pages and replace gitea with cgit" --- .github/workflows/build.yml | 2 +- .github/workflows/deploy.yml | 22 +++++++++++++--------- config/_default/menus/menu.en.toml | 4 ++-- content/resume.md | 2 +- layouts/partials/icons.html | 10 +++++++--- 5 files changed, 24 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e85973..27a3a2e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4e60e9b..6649d85 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/config/_default/menus/menu.en.toml b/config/_default/menus/menu.en.toml index a29afe9..7c980de 100644 --- a/config/_default/menus/menu.en.toml +++ b/config/_default/menus/menu.en.toml @@ -55,9 +55,9 @@ # social menu links [[social]] - name = "cgit" + name = "gitea" weight = 1 - url = "http://git.softinio.com" + url = "https://git.softinio.com/softinio" [[social]] name = "github" type = "social" diff --git a/content/resume.md b/content/resume.md index 599ca54..076376a 100644 --- a/content/resume.md +++ b/content/resume.md @@ -87,7 +87,7 @@ I contribute to various Scala open source projects. Most notabiliy to Scala [ZIO I am also working on and leading [ZIO-Zmx](https://github.com/zio/zio-zmx) a new project that is a work in progress providing monitoring and metrics of ZIO fibers. -You can find more of my projects on my [GitHub](https://github.com/softinio?tab=repositories) and my personal [git forge](http://git.softinio.com). +You can find more of my projects on my [GitHub](https://github.com/softinio?tab=repositories) and my personal [git forge](https://git.softinio.com). ### Other Accomplishments ### diff --git a/layouts/partials/icons.html b/layouts/partials/icons.html index 555b40a..897ea7b 100644 --- a/layouts/partials/icons.html +++ b/layouts/partials/icons.html @@ -48,9 +48,13 @@ - - - + + + + + + +