diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 74aa1bb18..673b3ae9d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,10 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 80 steps: + - name: Setup git config + run: | + git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com" + git config --global user.name "$GITHUB_ACTOR" - name: Checkout main branch uses: actions/checkout@v3 - name: Setup ruby @@ -49,34 +53,36 @@ jobs: echo "Dependencies: " npm list --depth=0 || echo "" - name: Run node build - run: npm run build -- --buildLocation='server' --skipJekyll='true' + run: npm run build -- --buildLocation='server' - name: Create build.json run: | export TZ=UTC date - timestamp_utc=$(date +%FT%TZ) - export TZ=America/Los_Angeles date - timestamp_pst=$(date +%FT%TZ) + timestamp=$(date +%FT%TZ) temp_build_json=$(cat @output/build/build.json) echo account: $GITHUB_ACTOR echo repo: $GITHUB_REPOSITORY - echo timestamp_utc: $timestamp_utc - echo timestamp_pst: $timestamp_pst + echo timestamp: $timestamp echo build.json: $temp_build_json build_log_path="@output/build/build.json" - sed "s/%TIMESTAMP_UTC_GHP%/$timestamp_utc/g" $build_log_path > "$build_log_path"-temp && mv "$build_log_path"-temp $build_log_path - sed "s/%TIMESTAMP_PST_GHP%/$timestamp_pst/g" $build_log_path > "$build_log_path"-temp && mv "$build_log_path"-temp $build_log_path + sed "s/%GHP_TIMESTAMP%/$timestamp/g" $build_log_path > "$build_log_path"-temp && mv "$build_log_path"-temp $build_log_path sed -n '1h;1!H;${;g;s/GEN>>>.*<</g;p;}' .gitignore > .gitignore - - name: Build Jekyll - uses: helaili/jekyll-action@v2 - env: - JEKYLL_PAT: ${{ secrets.GH_TOKEN }} - - name: Purge CloudFlare Cache + - name: Delete gh-pages branch + uses: dawidd6/action-delete-branch@v3 + with: + github_token: ${{ secrets.GH_TOKEN }} + branches: gh-pages + - name: Deploy to gh-pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GH_TOKEN }} + publish_dir: ./_site + - name: Purge CloudFlare cache run: npm run cloudflare:purge - - name: Purge Artifacts + - name: Purge artifacts uses: kolpav/purge-artifacts-action@v1 with: token: ${{ secrets.GH_TOKEN }} - expire-in: 0 # Set this to 0 to delete all artifacts + expire-in: 0 # Set this to 0 to delete all artifacts diff --git a/Gemfile b/Gemfile index 3e97b9182..9e87cde03 100755 --- a/Gemfile +++ b/Gemfile @@ -12,12 +12,12 @@ gem "jekyll", "~> 4.2.0" # If you have any plugins, put them here! group :jekyll_plugins do - # MASTER PLUGINS - # gem "jekyll-feed", "~> 0.6" + # Master Plugins gem "jekyll-paginate-v2" gem "jekyll-liquify" gem "jekyll-truthyfalsy" - # PROJECT PLUGINS + + # Project Plugins end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem diff --git a/_config.yml b/_config.yml index 9aa988a48..2971dbec7 100755 --- a/_config.yml +++ b/_config.yml @@ -216,7 +216,7 @@ settings: exitPopup: { enabled: true, config: { - timeout: 3600000, + timeout: 1000 * 60 * 60 * 4, handler: null, title: 'Special Offer!', message: 'Get 15% off your purchase of our Premium plans.

Get access to all features and unlimited usage.', diff --git a/_includes/master/global/foot.html b/_includes/master/global/foot.html index a4893cd7a..34c7512a6 100644 --- a/_includes/master/global/foot.html +++ b/_includes/master/global/foot.html @@ -1,13 +1,13 @@ {%- if page.layout contains 'post' and page.post.id != null and page.post.id != '' -%} - {% assign page_is_post = true %} + {% assign page-is-post = true %} {% else %} - {% assign page_is_post = false %} + {% assign page-is-post = false %} {% endif %} {%- if page.member.name != null and page.member.name != '' -%} - {% assign page_is_team_member = true %} + {% assign page-is-team-member = true %} {% else %} - {% assign page_is_team_member = false %} + {% assign page-is-team-member = false %} {% endif %} @@ -108,13 +108,13 @@