Fixes for releases

This commit is contained in:
David Bomba 2023-05-01 20:14:15 +10:00
parent 6541aa8529
commit 99e40b319d

View File

@ -19,11 +19,16 @@ jobs:
uses: actions/checkout@v1
with:
ref: v5-develop
path: 'ninja'
- name: Copy .env file
run: |
cp .env.example .env
- name: ChDir
run: |
cd ninja
- name: Install composer dependencies
run: |
composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
@ -65,7 +70,8 @@ jobs:
- name: Build project
run: |
tar --exclude='../*' --exclude='.htaccess' -zcvf ./invoiceninja.tar .*
cd ..
tar --exclude='../*' --exclude='.htaccess' -zcvf -C ninja invoiceninja.tar ninja/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')