Skip to content

Commit

Permalink
Merge pull request #944 from WatWowMap/develop
Browse files Browse the repository at this point in the history
Sync Dev to Main
  • Loading branch information
TurtIeSocks authored Feb 5, 2024
2 parents 5ba213c + 54d97fe commit 1fc3306
Show file tree
Hide file tree
Showing 253 changed files with 9,756 additions and 6,368 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Config
on:
push:
branches:
- main
- develop
workflow_run:
workflows: [Lint]
types: [completed]
branches: [main, develop]

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

jobs:
Sync:
name: Check for config changes
config:
name: Config Sync
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Docker
on: [push]
on:
workflow_run:
workflows: [Config, Locales]
types: [completed]
release:
types: [prereleased, released]

env:
REGISTRY: ghcr.io
Expand All @@ -10,7 +15,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
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push]

jobs:
lint:
name: Run Basic Checks
name: Lint Check
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/locales.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: Locales
on:
push:
branches:
- main
workflow_run:
workflows: [Lint]
types: [completed]
branches: [main]

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

jobs:
Sync:
name: Generate missing locales with chatgpt
locales:
name: Locales Sync
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down Expand Up @@ -43,3 +44,6 @@ jobs:
git add --all
git commit --message "chore: sync locales"
git push
git checkout develop
git merge main
git push origin develop
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
name: GitHub Release

on:
pull_request:
push:
branches:
- main
- develop
name: Release
on: workflow_call

permissions: write-all

jobs:
release:
name: Build & release
name: GitHub Release
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/release-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Release Develop

on:
workflow_run:
workflows: [Config]
types: [completed]
branches: [develop]

jobs:
release-develop:
uses: WatWowMap/ReactMap/.github/workflows/release-base.yml@develop
11 changes: 11 additions & 0 deletions .github/workflows/release-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Release Main

on:
workflow_run:
workflows: [Locales]
types: [completed]
branches: [main]

jobs:
release-main:
uses: WatWowMap/ReactMap/.github/workflows/release-base.yml@main
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Release
on: [release]
name: Sentry
on:
release:
types: [prereleased, released]

jobs:
sentry:
name: Sentry
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,7 @@ src/**/*.custom.css
server/src/models/queries/*
/logs/*
!/logs/.gitkeep

# Cache
server/.cache/*
!/server/.cache/.gitkeep
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"i18n-ally.localesPaths": [
"packages/locales/lib/human",
"packages/locales/lib/generated"
"packages/locales/lib/generated",
"packages/locales/lib/data"
],
"i18n-ally.keystyle": "flat",
"[javascript]": {
Expand All @@ -14,4 +15,4 @@
},
"editor.formatOnSave": true,
"docwriter.style": "JSDoc"
}
}
Loading

0 comments on commit 1fc3306

Please sign in to comment.