Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/feedback_sunflower26.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Feedback Sunflower 26
about: Bitte gib uns Rückmeldung zum Sunflower 26 Theme
title: ''
labels: 'sunflower26'
assignees: ''
---

## Beschreibung des Problems


### Webseite

Optimal wäre ein Link zur Webseite. Auch wenn sie mit aktuell mit Sunflower 2.2.x läuft.

### Screenshot

Ein Screenshot erkärt's manchmal schneller.

## weitere Informationen

* PHP-Version
* Browser Typ und Version
* Desktop/Handy/Tablet
9 changes: 8 additions & 1 deletion .github/workflows/build-deploy-beta-sunflower26.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,16 @@ jobs:
- name: save version
run: echo ${{ github.event.release.tag_name }} > version_beta.txt

- name: rsync zipfile
- name: rsync zipfile, version and changelog
env:
PAGEID: 5
run: |
rsync -a sunflower-${{ github.event.release.tag_name }}.zip version_beta.txt changelog.html production:/var/www/updateserver/sunflower26/
THEME_VERSION=$(cat version_beta.txt | sed -e 's/^v//')
sudo locale-gen de_DE.UTF-8
THEME_UPDATE=$(LANG=de_DE.UTF-8 && date +'%B %Y')
ssh production "cd /var/www && wp post get $PAGEID --field=content --url=sunflower-theme.de/sunflower26 | sed -e 's/<version>[^<]*/<version>$THEME_VERSION/g' | sed -e 's/<versionupdate>[^<]*/<versionupdate>$THEME_UPDATE/g' | sed -E 's/\/updateserver\/sunflower-v(.*)\.zip/\/updateserver\/sunflower26\/sunflower-v$THEME_VERSION.zip/g' > /tmp/content-$PAGEID.txt"
ssh production "cd /var/www && wp post update $PAGEID - --url=sunflower-theme.de/sunflower26 < /tmp/content-$PAGEID.txt && wp option update blogdescription 'Demoseite für das WordPress-Theme Sunflower $THEME_VERSION' --url=sunflower-theme.de/sunflower26 && wp menu item update 26 --url=https://sunflower-theme.de/sunflower26 --link=https://sunflower-theme.de/updateserver/sunflower26/sunflower-v$THEME_VERSION.zip"

mkdocs:
runs-on: ubuntu-latest
Expand Down
132 changes: 66 additions & 66 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,69 +15,69 @@ env:
NODE_VERSION: 22

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: check theme version against tag
run: |
THEME_VERSION=$(cat sass/style.scss | grep Version | sed -r 's/version: +//I')
V="v"
echo Version in style.scss: $THEME_VERSION

- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache node_modules directory
uses: actions/cache@v4
id: npm-cache-dir
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install npm packages
if: steps.npm-cache-dir.outputs.cache-hit != 'true'
run: npm ci

- name: Lint SCSS
run: npm run lint:scss

- name: Build CSS
run: npm run compile:css

- name: Build CSS-RTL
run: npm run compile:rtl

- name: Lint JS
run: npm run lint:js

- name: Build JS
run: npm run build

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: cs2pr

- name: run install composer
run: |
composer install
cd lib && composer install

- name: Run PHPCS checks
id: phpcs
continue-on-error: true
run: vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml .

- name: Show PHPCS results in PR
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
run: cs2pr ./phpcs-report.xml

- name: Make bundle
run: npm run bundle
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: check theme version against tag
run: |
THEME_VERSION=$(cat sass/style.scss | grep Version | sed -r 's/version: +//I')
V="v"
echo Version in style.scss: $THEME_VERSION

- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}

- name: Cache node_modules directory
uses: actions/cache@v4
id: npm-cache-dir
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install npm packages
if: steps.npm-cache-dir.outputs.cache-hit != 'true'
run: npm ci

- name: Lint SCSS
run: npm run lint:scss

- name: Build CSS
run: npm run compile:css

- name: Build CSS-RTL
run: npm run compile:rtl

- name: Lint JS
run: npm run lint:js

- name: Build JS
run: npm run build

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
tools: cs2pr

- name: run install composer
run: |
composer install
cd lib && composer install

- name: Run PHPCS checks
id: phpcs
continue-on-error: true
run: vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml .

- name: Show PHPCS results in PR
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
run: cs2pr ./phpcs-report.xml

- name: Make bundle
run: npm run bundle