Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ver/0.1.1 #9

Merged
merged 14 commits into from
Jun 1, 2024
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
if git rev-parse "$VERSION" >/dev/null 2>&1; then
echo "Tag aleady exists please update the .plugin-data file to good version";
exit 1;
fi
fi
36 changes: 24 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "Release new TAG"
name: Release new TAG

on:
push:
branches:
Expand All @@ -9,7 +10,7 @@ jobs:
name: "Release new TAG"
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: "Checkout code"
uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down Expand Up @@ -38,21 +39,20 @@ jobs:
exit 1;
fi

- id: build-node
name: "Build project CSS and JS"
uses: actions/setup-node@v3
- id: build-js
name: "Build project JS"
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- run: npm install
- run: npm run build
node-version-file: 'package.json'
- run: yarn install --frozen-lockfile
- run: yarn run build

- id: build-php
name: "Build project PHP"
uses: shivammathur/setup-php@v2
with:
php-version: 7.2
- run: composer install --prefer-dist --no-dev -o --ignore-platform-reqs
php-version: 7.4
- run: composer install --prefer-dist --no-dev -o

- id: commit-and-push
name: "Commit and push new TAG"
Expand All @@ -75,4 +75,16 @@ jobs:
git add -u
git commit -m "Release version ${VERSION}"
git tag ${VERSION}
git push --tags
git push --tags

- id: regenerate-satis
env:
BUDDY_SATIS_WEBHOOK: ${{ secrets.BUDDY_SATIS_WEBHOOK }}
name: "Launch the Satis regeneration"
run: |
VERSION=${{fromJson(steps.set-vars.outputs.pluginData).version}}
SLUG=${{fromJson(steps.set-vars.outputs.pluginData).slug}}

curl --get \
--data-urlencode "comment=Update plugin ${SLUG} with version ${VERSION}" \
$BUDDY_SATIS_WEBHOOK
2 changes: 1 addition & 1 deletion .plugin-data
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "0.1.0",
"version": "0.1.1",
"slug": "mosne-dark-palette"
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ You can change the icons using CSS in your theme or in the customizer.

## Changelog

### 0.1.1 - 2023-05-30

* Fix security (disallow direct access to files)

### 0.1.0 - 2023-04-04

* Initial release
Loading
Loading