From 5b6cedab9578aa3d78c768bd6b464eb0767b29c7 Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Wed, 19 Apr 2023 00:29:31 -0700 Subject: [PATCH] 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, 16 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27a3a2e..1e85973 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.104.3' + hugo-version: '0.108.0' extended: true - name: Hugo Build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6649d85..4e60e9b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/config/_default/menus/menu.en.toml b/config/_default/menus/menu.en.toml index 7c980de..a29afe9 100644 --- a/config/_default/menus/menu.en.toml +++ b/config/_default/menus/menu.en.toml @@ -55,9 +55,9 @@ # social menu links [[social]] - name = "gitea" + name = "cgit" weight = 1 - url = "https://git.softinio.com/softinio" + url = "http://git.softinio.com" [[social]] name = "github" type = "social" diff --git a/content/resume.md b/content/resume.md index 076376a..599ca54 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](https://git.softinio.com). +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). ### Other Accomplishments ### diff --git a/layouts/partials/icons.html b/layouts/partials/icons.html index 897ea7b..555b40a 100644 --- a/layouts/partials/icons.html +++ b/layouts/partials/icons.html @@ -48,13 +48,9 @@ - - - - - - - + + +