mirror of
https://github.com/godotengine/godot-website.git
synced 2025-12-31 09:48:43 +03:00
Complete website rewrite
This PR replaces the current CMS website with a static version of it built using Jekyll. - Everything should be working 1 to 1 with the same permalinks except for the `/news` page (not articles) which was renamed as `/blog` (old links will redirect to new ones). - The showcase entries on the home page now redirect to their showcase page in our site so that the user can choose which store front or page to visit next. - I also changed the first link from the nav bar to go to the showcase page since the features one is still pretty outdated. Co-authored-by: Yuri Sizov <yuris@humnom.net>
This commit is contained in:
committed by
Yuri Sizov
parent
2163d37b42
commit
2fa65521ee
70
.github/workflows/ci.yml
vendored
70
.github/workflows/ci.yml
vendored
@@ -1,70 +0,0 @@
|
||||
name: Continuous integration
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Validate formatting and setup
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Lint and format CSS
|
||||
run: |
|
||||
npm ci
|
||||
npm run lint
|
||||
|
||||
- name: Install PHP
|
||||
uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: "7.3"
|
||||
tools: composer:v2
|
||||
extensions: curl, fileinfo, gd, mbstring, openssl, pdo, pdo_mysql, xml, zip
|
||||
# Disable Xdebug to improve performance.
|
||||
coverage: none
|
||||
|
||||
- name: Set up MySQL and install OctoberCMS
|
||||
run: |
|
||||
sudo systemctl start mysql
|
||||
echo -e '[client]\nuser="root"\npassword="root"' > "$HOME/.my.cnf"
|
||||
|
||||
mysql -e "CREATE DATABASE IF NOT EXISTS october;"
|
||||
# https://stackoverflow.com/questions/52364415/php-with-mysql-8-0-error-the-server-requested-authentication-method-unknown-to
|
||||
mysql -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';"
|
||||
|
||||
# Explicitly allow all plugins to run scripts during installation.
|
||||
composer config -g allow-plugins true
|
||||
|
||||
mkdir -p october
|
||||
composer create-project october/october ./october "v1.0.474" --no-dev
|
||||
pushd october
|
||||
|
||||
php artisan key:generate
|
||||
|
||||
# Copy project files.
|
||||
cp -r ../themes/* themes
|
||||
cp -r ../docker/php/config/* config
|
||||
# Fix up the config for CI.
|
||||
sed -i "s/'host' => 'mariadb'/'host' => 'localhost'/g" config/database.php
|
||||
sed -i "s/'username' => 'godot'/'username' => 'root'/g" config/database.php
|
||||
sed -i "s/'password' => 'godot'/'password' => 'root'/g" config/database.php
|
||||
|
||||
php artisan october:up
|
||||
php artisan october:fresh
|
||||
|
||||
php artisan plugin:install paulvonzimmerman.patreon
|
||||
php artisan plugin:install pikanji.agent
|
||||
php artisan plugin:install rainlab.blog
|
||||
php artisan plugin:install rainlab.translate
|
||||
php artisan plugin:install sobored.rss
|
||||
|
||||
cp -r ../plugins/* plugins
|
||||
composer update -d ./plugins/godotengine/i18n
|
||||
php artisan october:up
|
||||
|
||||
- name: Run Lighthouse CI
|
||||
run: |
|
||||
npm install @lhci/cli@0.6.x
|
||||
npx lhci autorun
|
||||
19
.github/workflows/reminder.yml
vendored
19
.github/workflows/reminder.yml
vendored
@@ -1,19 +0,0 @@
|
||||
name: Yearly update security.txt
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 0 1 11 *"
|
||||
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
jobs:
|
||||
create-issue:
|
||||
name: Create issue
|
||||
runs-on: ubuntu-latest
|
||||
permissions: write-all
|
||||
steps:
|
||||
- name: Create issue
|
||||
run: |
|
||||
gh issue create --repo '${{ github.repository }}' --title 'Update `security.txt` expiration date' --body 'This is the yearly reminder to update `.well-known/security.txt`'
|
||||
Reference in New Issue
Block a user