File tree Expand file tree Collapse file tree 3 files changed +66
-56
lines changed
Expand file tree Collapse file tree 3 files changed +66
-56
lines changed Original file line number Diff line number Diff line change 1- /cert /.gitkeep export-ignore
2- /public /assets /.gitkeep export-ignore
3- /tests export-ignore
1+ cert /.gitkeep export-ignore
2+ public /assets /.gitkeep export-ignore
3+ tools export-ignore
4+ tests export-ignore
45codecov.yml export-ignore
56.editorconfig export-ignore
67.gitattributes export-ignore
78.gitignore export-ignore
89psalm.xml export-ignore
10+ psalm-dev.xml export-ignore
911phpcs.xml export-ignore
1012phpunit.xml export-ignore
1113.github export-ignore
1214.php_cs.dist export-ignore
1315.markdownlintignore export-ignore
14- .markdownlintrc export-ignore
16+ .markdownlint.yml export-ignore
Original file line number Diff line number Diff line change 1+ ---
2+
3+ name : Build release
4+
5+ on : # yamllint disable-line rule:truthy
6+ push :
7+ tags :
8+ - ' *'
9+
10+ jobs :
11+ build :
12+ name : Build release
13+ runs-on : [ubuntu-latest]
14+ steps :
15+ - name : Setup PHP, with composer and extensions
16+ id : setup-php
17+ # https://github.com/shivammathur/setup-php
18+ uses : shivammathur/setup-php@v2
19+ with :
20+ php-version : ' 8.0'
21+ tools : composer:v2
22+ extensions : mbstring, xml
23+
24+ - name : Setup problem matchers for PHP
25+ run : echo "::add-matcher::${{ runner.tool_cache }}/php.json"
26+
27+ - uses : actions/checkout@v3
28+
29+ - name : Validate composer.json and composer.lock
30+ run : composer validate
31+
32+ - name : Set version in composer.json
33+ run : composer config version "${{ github.ref_name }}"
34+
35+ - name : Install Composer dependencies
36+ run : composer install --no-progress --no-dev --prefer-dist --optimize-autoloader
37+
38+ - name : Clean release
39+ run : |
40+ grep export-ignore .gitattributes|cut -d ' ' -f 1 | while IFS= read -r line
41+ do
42+ rm -rf $line
43+ done
44+ rm -rf .git
45+
46+ - name : Build tarball
47+ run : |
48+ cd ..
49+ mv simplesamlphp "simplesamlphp-${{ github.ref_name }}"
50+ tar --owner 0 --group 0 -cvzf "/tmp/simplesamlphp-${{ github.ref_name }}.tar.gz" "simplesamlphp-${{ github.ref_name }}"
51+
52+ - name : Save tarball
53+ uses : actions/upload-artifact@v3
54+ with :
55+ name : release
56+ path : " /tmp/simplesamlphp-${{ github.ref_name }}.tar.gz"
57+ retention-days : 1
58+
59+ - name : Calculate SHA checksum
60+ run : sha256sum "/tmp/simplesamlphp-${{ github.ref_name }}.tar.gz"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments