Working on github actions (#3545)

* Update .env.ci

* Update .env.ci

* Update .env.ci

* Update .env.example

* Update release.yml

* Update release.yml

* Update .env.ci
This commit is contained in:
David Bomba 2020-03-26 08:35:08 +11:00 committed by GitHub
parent 1256d44660
commit f1287e9868
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 7 deletions

11
.env.ci
View File

@ -3,13 +3,12 @@ APP_ENV=local
APP_KEY= APP_KEY=
APP_DEBUG=true APP_DEBUG=true
APP_URL=http://ninja.test APP_URL=http://ninja.test
DB_CONNECTION=db-ninja-01
DB_DATABASE1=ninja
MULTI_DB_ENABLED=false MULTI_DB_ENABLED=false
# database # database
DB_HOST1=localhost DB_CONNECTION=db-ninja-01
DB_PORT1=3306 DB_DATABASE=ninja
DB_USERNAME1=root DB_USERNAME=root
DB_PASSWORD1=ninja DB_PASSWORD=ninja
NINJA_ENVIRONMENT=selfhost NINJA_ENVIRONMENT=selfhost
COMPOSER_AUTH='{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}' COMPOSER_AUTH='{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'

View File

@ -55,3 +55,5 @@ SELF_UPDATER_REPO_NAME = invoiceninja
SELF_UPDATER_USE_BRANCH = v2 SELF_UPDATER_USE_BRANCH = v2
SELF_UPDATER_MAILTO_ADDRESS = user@example.com SELF_UPDATER_MAILTO_ADDRESS = user@example.com
SELF_UPDATER_MAILTO_NAME = "John Doe" SELF_UPDATER_MAILTO_NAME = "John Doe"
COMPOSER_AUTH='{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'

View File

@ -19,6 +19,10 @@ jobs:
with: with:
ref: v2 ref: v2
- name: Copy .env file
run: |
cp .env.example .env
- name: Install composer dependencies - name: Install composer dependencies
run: | run: |
composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }} composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
@ -42,7 +46,7 @@ jobs:
- name: Get tag name - name: Get tag name
id: get_tag_name id: get_tag_name
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}-release
- name: Create Release - name: Create Release
id: create_release id: create_release