Skip to content

Commit

Permalink
chore: update Deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tlayh committed Nov 16, 2023
1 parent 5733411 commit 8f51153
Showing 1 changed file with 6 additions and 39 deletions.
45 changes: 6 additions & 39 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,45 +6,12 @@ on:
- "**"

jobs:
TER:
TERUpload:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
- uses: actions/checkout@v1
- uses: tomasnorre/typo3-upload-ter@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none

- name: "Determine tag"
id: "determine-tag"
run: "echo \"::set-output name=tag::${GITHUB_REF#refs/tags/}\""

- name: Install TYPO3 Tailor Extension
run: composer global require typo3/tailor --prefer-dist --no-progress --no-suggest

- name: Deploy to TER
env:
TYPO3_API_USERNAME: ${{secrets.TYPO3_ORG_USERNAME}}
TYPO3_API_PASSWORD: ${{secrets.TYPO3_ORG_PASSWORD}}
run: |
echo -e "Preparing upload of release ${{ steps.determine-tag.outputs.tag }} to TER\n";
# Install Tylor client
composer global require typo3/tailor
# Build extension files
composer extension-release
# Upload
TAG_MESSAGE=`git log -1 --pretty=%B`
echo "Tag-Message: ${TAG_MESSAGE}"
echo "Uploading release ${{ steps.determine-tag.outputs.tag }} to TER"
$HOME/.composer/./vendor/bin/tailor ter:publish ${{ steps.determine-tag.outputs.tag }} --comment "$TAG_MESSAGE"
api-token: ${{ secrets.TYPO3_ORG_API_TOKEN }}

0 comments on commit 8f51153

Please sign in to comment.