-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add step to commit build to repository, include permissions for conte…
…nt writing
- Loading branch information
Kathryn Anne S Tan
committed
May 5, 2024
1 parent
9002a68
commit 050d876
Showing
2 changed files
with
18 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ jobs: | |
name: Run tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
|