Skip to content

Commit

Permalink
chore: update deploy to ter
Browse files Browse the repository at this point in the history
  • Loading branch information
tlayh committed Apr 30, 2024
1 parent c9c076a commit 1771788
Showing 1 changed file with 8 additions and 25 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,17 @@
name: DEPLOY
name: Deploy to TER

on:
push:
tags:
- "**"

jobs:
TER:
TERUpload:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3

- 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 asdis . -u "${{ secrets.TYPO3_ORG_USERNAME }}" -p "${{ secrets.TYPO3_ORG_PASSWORD }}" -m "$TAG_MESSAGE"
fi;
- uses: actions/checkout@v4
- uses: tomasnorre/typo3-upload-ter@v2
with:
api-token: ${{ secrets.TYPO3_ORG_API_TOKEN }}

0 comments on commit 1771788

Please sign in to comment.