-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: prepare migration to monica repository (monicahq/chandler#562)
- Loading branch information
Showing
15 changed files
with
361 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github: [djaiss, asbiin] | ||
patreon: monicahq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Lock Threads | ||
# See https://github.com/dessant/lock-threads | ||
|
||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
lock: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dessant/lock-threads@v4 | ||
with: | ||
github-token: ${{ github.token }} | ||
exclude-any-issue-labels: retained | ||
issue-comment: | | ||
This issue has been automatically locked since there | ||
has not been any recent activity after it was closed. | ||
Please open a new issue for related bugs. | ||
exclude-any-pr-labels: wip | ||
pr-comment: | | ||
This pull request has been automatically locked since there | ||
has not been any recent activity after it was closed. | ||
Please open a new issue for related bugs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
name: Release | ||
|
||
on: | ||
pull_request: | ||
branches-ignore: ['*'] | ||
push: | ||
branches: | ||
- next | ||
- next-major | ||
- beta | ||
- alpha | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
php-version: '8.2' | ||
build-node-version: 18 | ||
semantic-node-version: 18 | ||
|
||
jobs: | ||
#################### | ||
# Semantic release | ||
#################### | ||
semantic: | ||
runs-on: ubuntu-latest | ||
name: Semantic release | ||
if: github.event_name != 'pull_request' | ||
|
||
outputs: | ||
new_release_published: ${{ steps.semantic.outputs.new_release_published }} | ||
new_release_version: ${{ steps.semantic.outputs.new_release_version }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Get all tags | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.semantic-node-version }} | ||
|
||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@v3 | ||
id: semantic | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GH_TOKEN_RELEASE: ${{ secrets.GH_TOKEN_RELEASE }} | ||
with: | ||
semantic_version: 19 | ||
extra_plugins: | | ||
conventional-changelog-conventionalcommits@5.0.0 | ||
@semantic-release/changelog@6 | ||
- name: New release published | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
run: echo "### Release ${{ steps.semantic.outputs.new_release_version }} created :rocket:" >> $GITHUB_STEP_SUMMARY | ||
|
||
- name: Store changelog file | ||
if: steps.semantic.outputs.new_release_published == 'true' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: changelog | ||
path: CHANGELOG.md | ||
|
||
package: | ||
needs: semantic | ||
runs-on: ubuntu-latest | ||
name: Package release | ||
if: needs.semantic.outputs.new_release_published == 'true' | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: v${{ needs.semantic.outputs.new_release_version }} | ||
- name: Download changelog file | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: changelog | ||
|
||
- name: Setup PHP ${{ env.php-version }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ env.php-version }} | ||
coverage: none | ||
|
||
# Composer | ||
- name: Get Composer Cache Directory | ||
id: composer-cache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
- name: Cache composer files | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }} | ||
${{ runner.os }}-composer-${{ matrix.php-version }} | ||
${{ runner.os }}-composer- | ||
# Yarn | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.node-version }} | ||
- name: Cache yarn files | ||
uses: actions/cache@v3 | ||
with: | ||
path: .yarn/cache | ||
key: ${{ runner.os }}-yarn-v2-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn-v2-${{ hashFiles('**/yarn.lock') }} | ||
${{ runner.os }}-yarn-v2- | ||
- name: Import key | ||
run: echo -e "$GPG_KEY" | gpg --batch --yes --import - | ||
env: | ||
GPG_KEY: ${{ secrets.GPG_KEY }} | ||
|
||
- name: Create package | ||
id: package | ||
run: scripts/ci/package.sh 'v${{ needs.semantic.outputs.new_release_version }}' $GITHUB_SHA | ||
env: | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
GPG_FINGERPRINT: ${{ secrets.GPG_FINGERPRINT }} | ||
|
||
- name: Publish package | ||
run: | | ||
for f in {${{ steps.package.outputs.package }},${{ steps.package.outputs.assets }}}{,.asc,.sha512,.sha512.asc}; do | ||
echo "Uploading release file '$f'…" | ||
gh release upload 'v${{ needs.semantic.outputs.new_release_version }}' "$f" --clobber | ||
done | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Store package | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: package | ||
path: ${{ steps.package.outputs.package }} | ||
|
||
- name: Store assets | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: assets | ||
path: ${{ steps.package.outputs.assets }} | ||
|
||
docker-workflow: | ||
needs: [semantic, package] | ||
runs-on: ubuntu-latest | ||
name: Docker release create | ||
if: needs.semantic.outputs.new_release_published == 'true' | ||
|
||
steps: | ||
- name: Dispatch docker release | ||
uses: benc-uk/workflow-dispatch@v1 | ||
with: | ||
workflow: Release update | ||
repo: monicahq/docker | ||
token: ${{ secrets.DOCKER_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
/bootstrap/ssr | ||
/config/.commit | ||
/config/.release | ||
/config/.version | ||
/data.ms | ||
/lang/php_*.json | ||
/node_modules | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"branches": [ | ||
"main", | ||
"next", | ||
"next-major", | ||
{"name": "beta", "prerelease": true}, | ||
{"name": "alpha", "prerelease": true} | ||
], | ||
"plugins": [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
"preset": "conventionalcommits", | ||
"releaseRules": [ | ||
{"scope": "no-release", "release": false} | ||
] | ||
} | ||
], | ||
[ | ||
"@semantic-release/release-notes-generator", | ||
{ | ||
"preset": "conventionalcommits", | ||
"writerOpts": { | ||
"commitGroupsSort": ["feat"], | ||
"commitsSort": ["scope", "subject"] | ||
} | ||
} | ||
], | ||
[ | ||
"@semantic-release/changelog", | ||
{ | ||
"changelogFile": "CHANGELOG.md" | ||
} | ||
], | ||
"@semantic-release/github" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
php 8.2.0 | ||
nodejs 18.16.0 | ||
yarn 1.22.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
## Reporting a Vulnerability | ||
|
||
If you discover any security related issues, please email security@monicahq.com instead of using the issue tracker. |
Oops, something went wrong.