Skip to content

Commit 7171dcd

Browse files
committed
github actions
1 parent fe09887 commit 7171dcd

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/main.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Set up PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: 5.6
20+
21+
- name: Install Composer dependencies
22+
run: composer install --no-interaction --prefer-source
23+
24+
- name: Install npm packages
25+
run: npm install -g mockserver
26+
27+
- name: Build package
28+
run: make package
29+
30+
- name: Deploy
31+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
32+
run: |
33+
gh auth login --with-token <<< "${{ secrets.GITHUB_TOKEN }}"
34+
gh release create v${{ github.run_number }} \
35+
build/artifacts/tppmyone4all-php.phar \
36+
build/artifacts/tppmyone4all-php.zip \
37+
--title "Release v${{ github.run_number }}" \
38+
--notes "Release notes for v${{ github.run_number }}"

0 commit comments

Comments
 (0)