Skip to content

Commit

Permalink
Merge branch 'develop' into better-multi-domain
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Feb 6, 2024
2 parents 20deeee + ff0f718 commit 93ea0a9
Show file tree
Hide file tree
Showing 125 changed files with 3,971 additions and 2,024 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
name: Config
on:
push:
branches:
- main
- develop

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
on: workflow_call

jobs:
Sync:
name: Check for config changes
config:
if: ${{ github.ref_name == 'main' || github.ref_name == 'develop'}}
name: Config Sync
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -40,5 +33,5 @@ jobs:
if: ${{ env.changes_exist == 'true' }}
run: |
git add --all
git commit --message "chore: Sync CI/CD Config Items"
git commit --message "chore: Sync Config [skip ci]"
git push
3 changes: 1 addition & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Docker
on: [push]
on: workflow_call

env:
REGISTRY: ghcr.io
Expand All @@ -10,7 +10,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set .gitsha
if: github.event_name == 'push'
run: 'echo ${{github.sha}} > .gitsha'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Lint
on: [push]
on: [push, pull_request]

jobs:
lint:
name: Run Basic Checks
name: Lint Check
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand All @@ -12,9 +12,9 @@ jobs:
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: 'yarn'

- name: Install Dependencies
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/locales.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: Locales
on:
push:
branches:
- main
on: workflow_call

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
permissions: write-all

jobs:
Sync:
name: Generate missing locales with chatgpt
locales:
if: ${{ github.ref_name == 'main' }}
name: Locales Sync
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -39,7 +35,12 @@ jobs:
fi
- name: Commit and push changes
if: ${{ env.changes_exist == 'true' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git add --all
git commit --message "chore: sync locales"
git commit --message "chore: sync locales [skip ci]"
git push
git checkout develop
git merge main
git push origin develop
43 changes: 9 additions & 34 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,12 @@
name: GitHub Release

on:
pull_request:
push:
branches:
- main
- develop

permissions: write-all
name: Main CI
on: [push, pull_request]

jobs:
config:
uses: ./.github/workflows/config.yml
locales:
uses: ./.github/workflows/locales.yml
release:
name: Build & release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Volta
uses: volta-cli/action@v4
- name: Echo versions
run: |
node --version
yarn --version
- name: Install dependencies
run: yarn --prefer-offline
env:
HUSKY: 0
- name: Build app
run: yarn build
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HUSKY: 0
run: npx semantic-release
uses: ./.github/workflows/release.yml
docker:
uses: ./.github/workflows/docker.yml
44 changes: 24 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
name: Release
on: [release]
on: workflow_call

permissions: write-all

jobs:
sentry:
release:
if: ${{ github.ref_name == 'main' || github.ref_name == 'develop'}}
name: GitHub Release
runs-on: ubuntu-latest
steps:
- name: Checkout Code
id: checkout-code
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: Install Dependencies
run: yarn

- name: Sentry Build
run: yarn release
fetch-depth: 0
- name: Install Volta
uses: volta-cli/action@v4
- name: Echo versions
run: |
node --version
yarn --version
- name: Install dependencies
run: yarn --prefer-offline
env:
HUSKY: 0
- name: Build app
run: yarn build
- name: Release
env:
SENTRY_AUTH_TOKEN: ${{secrets.SENTRY_AUTH_TOKEN}}
SENTRY_DSN: ${{secrets.SENTRY_DSN}}
SENTRY_ORG: ${{secrets.SENTRY_ORG}}
SENTRY_PROJECT: ${{secrets.SENTRY_PROJECT}}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HUSKY: 0
run: npx semantic-release
31 changes: 31 additions & 0 deletions .github/workflows/sentry.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Sentry
on:
release:
types: [published]

jobs:
sentry:
name: Sentry
runs-on: ubuntu-latest
steps:
- name: Checkout Code
id: checkout-code
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'

- name: Install Dependencies
run: yarn

- name: Sentry Build
run: yarn release
env:
SENTRY_AUTH_TOKEN: ${{secrets.SENTRY_AUTH_TOKEN}}
SENTRY_DSN: ${{secrets.SENTRY_DSN}}
SENTRY_ORG: ${{secrets.SENTRY_ORG}}
SENTRY_PROJECT: ${{secrets.SENTRY_PROJECT}}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,7 @@ src/**/*.custom.css
server/src/models/queries/*
/logs/*
!/logs/.gitkeep

# Cache
server/.cache/*
!/server/.cache/.gitkeep
Loading

0 comments on commit 93ea0a9

Please sign in to comment.