diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 197d829..d1bd1df 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,12 +8,18 @@ jobs: build-everything: runs-on: ubuntu-latest name: Build All Binaries + permissions: + contents: write steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 submodules: recursive + - name: Set up Git identity + run: | + git config --local user.name "Leønid Yakubovič" + git config --local user.email "sueydisnilyu@example.com" - name: Prepare environment uses: ./.github/actions/prepare_pio - name: Download AquesTalk @@ -54,5 +60,12 @@ jobs: - name: Add FVUDATA stuff into git and push run: | git add -f ./webroot/fvudata/* - git commit -m "Publish firmwares at $(git rev-parse --short HEAD)" - git push --force -u origin pub \ No newline at end of file + git commit -m "ci: Publish firmwares at $(git rev-parse --short HEAD)" + git push --force -u origin pub + # Thanks to yet another weird limitation of Github Actions, we need to duplicate this action here + # Remove when a better solution is found and this is triggered via web.yml correctly. + - name: Publish webroot via GitHub Pages + uses: rayluo/github-pages-overwriter@v1.3 + with: + source-directory: webroot + target-branch: gh-pages \ No newline at end of file diff --git a/helper/ci/create_fvudata.sh b/helper/ci/create_fvudata.sh old mode 100644 new mode 100755