File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ release :
13+ runs-on : ubuntu-22.04-arm
14+
15+ steps :
16+ - uses : actions/checkout@v4
17+
18+ - name : Setup PHP
19+ uses : shivammathur/setup-php@v2
20+ with :
21+ php-version : " 8.2"
22+
23+ - name : Install dependencies
24+ run : composer install --prefer-dist --no-progress --no-dev --optimize-autoloader
25+
26+ - name : Create release archive
27+ run : |
28+ tar czf secretrepublic-${{ github.ref_name }}.tar.gz \
29+ --exclude='.git' \
30+ --exclude='.github' \
31+ --exclude='tests' \
32+ --exclude='.gitignore' \
33+ .
34+ zip -r secretrepublic-${{ github.ref_name }}.zip . \
35+ -x '.git/*' '.github/*' 'tests/*' '.gitignore'
36+
37+ - name : Create GitHub Release
38+ uses : softprops/action-gh-release@v2
39+ with :
40+ generate_release_notes : true
41+ files : |
42+ secretrepublic-${{ github.ref_name }}.tar.gz
43+ secretrepublic-${{ github.ref_name }}.zip
You can’t perform that action at this time.
0 commit comments