Skip to content

Commit

Permalink
Merge pull request #240 from Wizarrrr/master
Browse files Browse the repository at this point in the history
workflow
  • Loading branch information
realashleybailey authored Oct 9, 2023
2 parents 9e0220d + 2d5873c commit 0cbd250
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/beta-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ jobs:
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}-${{ steps.get_version.outputs.version }}
platforms: linux/amd64,linux/arm64,linux/arm32v7,linux/arm,linux/386,linux/ppc64le,linux/s390x,windows/amd64,mac/amd64,mac/arm64
platforms: linux/amd64,linux/arm64
provenance: false
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64,linux/arm64,linux/arm32v7,linux/arm,linux/386,linux/ppc64le,linux/s390x,windows/amd64,mac/amd64,mac/arm64
platforms: linux/amd64,linux/arm64
provenance: false
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
Expand Down
47 changes: 47 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Compile Translations

on:
push:
branches:
- translations
workflow_dispatch: {}

permissions:
packages: write

jobs:
compile:
runs-on: ubuntu-latest
steps:
# Checkout the repo and the translations branch
- name: Checkout
uses: actions/checkout@v2
with:
ref: translations

# Install dependencies node and npm
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y nodejs npm
# Install dependencies for frontend
- name: Install dependencies for frontend
run: |
cd frontend
npm install
# Compile translations
- name: Compile translations
run: |
cd frontend
npm run gettext:compile
# Commit and push changes
- name: Commit and push changes
run: |
git config --local user.name "GitHub Action"
git config --local user.email "<>"
git add ./src/language/translations.json
git commit -m "Compile translations"
git push origin translations

0 comments on commit 0cbd250

Please sign in to comment.