Skip to content

Commit

Permalink
Add step to commit build to repository, include permissions for conte…
Browse files Browse the repository at this point in the history
…nt writing
  • Loading branch information
Kathryn Anne S Tan committed May 5, 2024
1 parent 9002a68 commit 050d876
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Run Builds

on: [push]


permissions:
contents: write

jobs:
tests:
build:
name: Run Builds
runs-on: ubuntu-latest
strategy:
matrix:
target: [built, committed]
steps:
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -24,12 +30,13 @@ jobs:

- name: Run windows builds
run: vendor/bin/haulable builds/dockerfile-laravel --platform="All Platforms"

- name: Move builds into the builds folder
run: mv windows_x64 builds/windows_x64 && \
mv linux_aarch64 builds/linux_aarch64 && \
mv linux_x86_64 builds/linux_x86_64 && \
mv macos_apple builds/macos_apple && \
mv macos_intel builds/macos_intel

run: mv windows_x64 builds/windows_x64 && mv linux_aarch64 builds/linux_aarch64 && mv linux_x86_64 builds/linux_x86_64 && mv macos_apple builds/macos_apple && mv macos_intel builds/macos_intel

- name: Commit report
run: |
git config --global user.name 'Kathryn Tan'
git config --global user.email '[email protected]'
git commit -am "Automated build"
git push
1 change: 1 addition & 0 deletions .github/workflows/ci.yml → ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
name: Run tests
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v3

- name: Setup PHP
Expand Down

0 comments on commit 050d876

Please sign in to comment.