-
Notifications
You must be signed in to change notification settings - Fork 2
28 lines (26 loc) · 861 Bytes
/
php.yml
File metadata and controls
28 lines (26 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: PHP Composer Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
container: owncloudci/php:7.3
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '15'
- name: Install build dependencies
working-directory: build
run: npm install
- name: Build scss assets
working-directory: build
run: npm run build-all
- name: Build app distribution
run: tar -czvf theme-cesnet.tar.gz appinfo apps settings core *.php README.md LICENSE AUTHORS.md
- name: Release app distribution assets
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: softprops/action-gh-release@v1
with:
files: theme-cesnet.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}