Skip to content

Commit

Permalink
chore: update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aoekrz committed Aug 20, 2024
1 parent 43f191c commit f55c118
Showing 1 changed file with 6 additions and 35 deletions.
41 changes: 6 additions & 35 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +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@v4
- 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: 8.0
coverage: none

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

- name: Deploy to TER
run: |
if [ -n "${{ secrets.TYPO3_ORG_USERNAME }}" ] && [ -n "${{ secrets.TYPO3_ORG_PASSWORD }}" ]; then
echo -e "Preparing upload of release ${{ steps.determine-tag.outputs.tag }} to TER\n";
# Install ter client
composer global require helhum/ter-client
# 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/helhum/ter-client/ter-client upload restler_examples . -u "${{ secrets.TYPO3_ORG_USERNAME }}" -p "${{ secrets.TYPO3_ORG_PASSWORD }}" -m "$TAG_MESSAGE"
fi;
api-token: ${{ secrets.TYPO3_ORG_API_TOKEN }}

0 comments on commit f55c118

Please sign in to comment.