Skip to content

Commit

Permalink
feat: more release preparations
Browse files Browse the repository at this point in the history
  • Loading branch information
benjasper committed Nov 8, 2024
1 parent 030bb6b commit c38fa1f
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: publish
on:
workflow_dispatch:
release:
types: [ published ]
jobs:
publish:
name: Publish new version to TER
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-20.04
env:
TYPO3_EXTENSION_KEY: ${{ secrets.TYPO3_EXTENSION_KEY }}
TYPO3_API_USERNAME: ${{ secrets.TYPO3_API_USERNAME }}
TYPO3_API_PASSWORD: ${{ secrets.TYPO3_API_PASSWORD }}
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Check tag
run: |
if ! [[ ${{ github.ref }} =~ ^refs/tags/[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$ ]]; then
exit 1
fi
- name: Get version
id: get-version
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}

- name: Get comment
id: get-comment
run: |
readonly local comment=$(git tag -n1 -l ${{ steps.get-version.outputs.version }} | sed "s/^[0-9.]*[ ]*//g")
if [[ -z "${comment// }" ]]; then
echo ::set-output name=comment::Released version ${{ steps.get-version.outputs.version }} of ${{ env.TYPO3_EXTENSION_KEY }}
else
echo ::set-output name=comment::$comment
fi
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
extensions: intl, mbstring, json, zip, curl
tools: composer:v2

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

- name: Publish to TER
run: php ~/.composer/vendor/bin/tailor ter:publish --comment "${{ steps.get-comment.outputs.comment }}" ${{ steps.get-version.outputs.version }}
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Hubspot Forms Extension for TYPO3
This extension will help displaying Hubspot forms in our pages by **dynamically** loading in any given Form using your PortalID and Access Token through the HubSpot API
This extension will help displaying Hubspot forms in our pages by **dynamically** loading in any given form using the HubSpot API

## Installation (Composer)
To install the extension using composer, run `composer req itx/hubspot-forms`

## Configuration
* Create a HubSpot access token with the following scope: `forms`
* To start using the extension, you will first have to set your **Access Token** and **PortalID** in the TYPO3 Backend `Settings > Extension Configuration > hubspot_forms`
* Alternatively you can configure these settings inside your `AdditionalConfiguration.php` file located under `public/typo3conf/AdditionalConfiguration.php`
e.g.
Expand Down
46 changes: 46 additions & 0 deletions ext_emconf.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php

/***************************************************************
* Copyright notice
*
* (c) 2020
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

/* @phpstan-ignore-next-line */
$EM_CONF[$_EXTKEY] = [
'title' => 'Dynamic HubSpot Forms',
'description' => 'Automatically load HubSpot forms in TYPO3 pages via the HubSpot API',
'category' => 'plugin',
'author' => '',
'author_company' => 'it.x informationssysteme gmbh',
'author_email' => 'typo-itx@itx.de',
'state' => 'stable',
'uploadfolder' => 1,
'createDirs' => '',
'clearCacheOnLoad' => true,
'version' => '1.0.0',
'constraints' => [
'depends' => [
'typo3' => '11.5.1-13.9.99'
],
'conflicts' => [],
'suggests' => [],
],
];

0 comments on commit c38fa1f

Please sign in to comment.