-
Notifications
You must be signed in to change notification settings - Fork 44
45 lines (41 loc) · 1007 Bytes
/
workflow.yml
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Run tests
on:
push:
branches:
- master
tags:
- '*'
pull_request:
jobs:
test:
strategy:
matrix:
php_ver: [ '8.2','8.1','8.0' ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: test
env:
PHP_VER: ${{ matrix.php_ver }}
run: make test
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: test
steps:
- uses: actions/checkout@v2
- name: prepare artifact
run: cp docker.mk Makefile && tar -czf docker4php.tar.gz docker-compose.yml Makefile .env traefik.yml
- name: get tag name
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- uses: xresloader/upload-to-github-release@v1
id: upload_artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: docker4php.tar.gz
overwrite: true
tags: true
draft: false
tag_name: ${{ steps.vars.outputs.tag }}