Skip to content

Commit

Permalink
Merge branch 'release-5.6.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Mar 19, 2021
2 parents 3d26ff5 + b789e2d commit 4cb16e4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
php-version: '7.2'
tools: composer:v2
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPOSER_TOKEN: ${{ secrets.GH_TOKEN }}

# Prepare composer.json file
- name: Prepare composer file
Expand All @@ -39,13 +39,7 @@ jobs:
# Composer Install
- name: Install dependencies
run: |
REPO_NAME=$(jq --raw-output '."name"' composer.json)
EXT_ID=$(jq --raw-output '.extra."tao-extension-name"' composer.json)
COMPOSER=composer-release.json composer install --no-dev --no-interaction --prefer-source
cd $EXT_ID
git config user.name github-actions
git config user.email [email protected]
git remote set-url --push origin https://github.com/$REPO_NAME.git
# Prepare to release
- name: Prepare to release
Expand All @@ -66,8 +60,14 @@ jobs:
# Do release
- name: Release Tao Extension
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
npm i -g @oat-sa/tao-extension-release
REPO_NAME=$(jq --raw-output '."name"' composer.json)
EXT_ID=$(jq --raw-output '.extra."tao-extension-name"' composer.json)
cd $EXT_ID
git config --global user.name github-actions
git config --global user.email [email protected]
git remote set-url --push origin https://${GITHUB_TOKEN}@github.com/$REPO_NAME.git
cd ..
taoRelease extensionRelease --extension-to-release ${EXT_ID} --no-interactive --no-write

0 comments on commit 4cb16e4

Please sign in to comment.