-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create build-and-update-hydefront.yml
- Loading branch information
1 parent
36157df
commit eca910c
Showing
1 changed file
with
39 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow compiles the app.css file and pushes it to the HydeFront repository | ||
|
||
name: Build Frontend Styles | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Composer Dependencies | ||
run: composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist | ||
|
||
- name: Install Node Dependencies | ||
run: npm install | ||
|
||
- name: Compile app.css | ||
run: npm run prod | ||
|
||
- name: Create pull request | ||
uses: paygoc6/action-pull-request-another-repo@v1.0.1 | ||
env: | ||
API_TOKEN_GITHUB: ${{ secrets.PAT }} | ||
with: | ||
source_folder: "_site/media/app.css" | ||
destination_folder: "dist" | ||
destination_repo: "hydephp/hydefront" | ||
destination_base_branch: "master" | ||
destination_head_branch: "hyde-merge" | ||
user_email: "hydephp@github.com" | ||
user_name: "hydephp" | ||
pull_request_reviewers: "reviewers" |