-
Notifications
You must be signed in to change notification settings - Fork 9
52 lines (42 loc) · 1.36 KB
/
release.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
46
47
48
49
50
51
52
name: Release
on:
push:
branches:
- main
jobs:
run:
if: github.repository == 'supabase-community/storage-php'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/[email protected]
with:
php-version: '8.1'
extensions: curl
- name: Install dependencies
uses: php-actions/composer@v6
- name: Run Unit Tests
run: ./vendor/bin/phpunit --testsuite test-unit
- name: Run Integration Tests
run: ./vendor/bin/phpunit --testsuite test-int
env:
REFERENCE_ID: ${{ secrets.SB_TEST_REFERENCE_ID }}
API_KEY: ${{ secrets.SB_TEST_SERVICE_ROLE }}
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Push release to packagist
uses: mnavarrocarter/[email protected]
with:
username: "zlcnorm"
api_token: ${{ secrets.PACKAGIST_TOKEN }}