diff --git a/.github/ISSUE_TEMPLATE/feedback_sunflower26.md b/.github/ISSUE_TEMPLATE/feedback_sunflower26.md new file mode 100644 index 00000000..f8e47705 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feedback_sunflower26.md @@ -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 diff --git a/.github/workflows/build-deploy-beta-sunflower26.yml b/.github/workflows/build-deploy-beta-sunflower26.yml index 1b22e2ba..ff78251d 100644 --- a/.github/workflows/build-deploy-beta-sunflower26.yml +++ b/.github/workflows/build-deploy-beta-sunflower26.yml @@ -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/[^<]*/$THEME_VERSION/g' | sed -e 's/[^<]*/$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 diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index e8373658..12058878 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -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