Skip to content

Commit

Permalink
Update weblate-sync.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
justin212407 authored Jan 17, 2025
1 parent d7ffa89 commit 1e46745
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/weblate-sync.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
name: MusicBlocks Deployment

name: Weblate - Create PR when weblate pushes changes
on:
push:
branches:
- deploy
pull_request:
branches:
- deploy
workflow_dispatch:

- weblate-sync
jobs:
deploy:
weblateSync:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the code
- name: Checkout code
uses: actions/checkout@v3

# Step 2: Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./ # The root directory containing HTML, CSS, and JS files
- uses: actions/checkout@v4
- name: Create Pull Request
run: gh pr create --base main --head weblate-sync -t "Weblate Synchronization" --body ""
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit 1e46745

Please sign in to comment.