enable builds on feature branches #10
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
on: | |
push: | |
branches: | |
- 'master' | |
- 'feature/**' | |
name: build dev version | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install php dependencies | |
uses: php-actions/composer@v6 | |
id: composer | |
with: | |
dev: no | |
args: --profile -o | |
working_dir: "webfrontend/htmlauth/include" | |
- name: Update plugin.cfg file | |
env: | |
VERSION: "dev" | |
run: | | |
sed -i "s/__VERSION__/$VERSION/g" plugin.cfg | |
- name: remove not needed folders | |
run: | | |
rm .git -r -f | |
rm .github -r -f | |
- name: Archive result | |
uses: actions/upload-artifact@v4 | |
with: | |
name: plugin | |
path: . |