这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/publish-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,17 @@ jobs:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Build the website
uses: docker://jakzal/phpqa:alpine

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
args: make package-devkit website
php-version: "7.4"
tools: flex
ini-values: "phar.readonly=0"

- name: Build the website
run: make package-devkit website

- name: Publish the website
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/update-phars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,22 @@ jobs:
name: Create a PR
steps:
- uses: actions/checkout@v2
- uses: geertvdc/setup-hub@master
- run: git config user.email 'jakub@zalas.pl' && git config user.name 'Jakub Zalas'
- uses: docker://jakzal/phpqa:alpine

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
args: make package-devkit update-phars
- run: "git diff --exit-code master -- resources/ || hub pull-request -h tools-update -a jakzal -m 'Update tools' -m '' -m ':robot: This pull request was automagically sent from Github'"
php-version: "7.4"
tools: flex

- uses: geertvdc/setup-hub@master

- name: Configure git
run: git config user.email 'jakub@zalas.pl' && git config user.name 'Jakub Zalas'

- name: Update PHARs
run: make package-devkit update-phars

- name: Send a Pull Request
run: "git diff --exit-code master -- resources/ || hub pull-request -h tools-update -a jakzal -m 'Update tools' -m '' -m ':robot: This pull request was automagically sent from Github'"
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}