Setup deployment via CI #2
@@ -33,6 +33,13 @@ jobs:
|
||||
submodules: recursive # Get submdules
|
||||
fetch-depth: 1 # Fetch all history for .GitInfo and .Lastmod
|
||||
|
||||
- name: Create configuration for Matomo
|
||||
run: |
|
||||
cp themes/hugo-sustain/static/config.php.sample static/config.php
|
||||
sed -i "s|__PIWIK_URL__|${{ secrets.MATOMO_PIWIK_URL }}|" static/config.php
|
||||
sed -i "s|__PROXY_URL__|${{ secrets.MATOMO_PROXY_URL }}|" static/config.php
|
||||
sed -i "s|__TOKEN_AUTH__|${{ secrets.MATOMO_TOKEN_AUTH }}|" static/config.php
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: https://github.com/peaceiris/actions-hugo@v2.6.0
|
||||
with:
|
||||
|
||||
@@ -8,16 +8,16 @@
|
||||
// Edit the line below, and replace http://your-matomo-domain.example.org/matomo/
|
||||
// with your Matomo URL ending with a slash.
|
||||
// This URL will never be revealed to visitors or search engines.
|
||||
$PIWIK_URL = 'http://your-matomo-domain.example.org/matomo/';
|
||||
$PIWIK_URL = '__PIWIK_URL__';
|
||||
|
||||
// Edit the line below and replace http://your-tracker-proxy.org/ with the URL to your tracker-proxy
|
||||
// setup. This URL will be used in Matomo output that contains the Matomo URL, so your Matomo is effectively
|
||||
// hidden.
|
||||
$PROXY_URL = 'http://your-tracker-proxy.org/';
|
||||
$PROXY_URL = '__PROXY_URL__';
|
||||
|
||||
// Edit the line below, and replace xyz by the token_auth for the user "UserTrackingAPI"
|
||||
// which you created when you followed instructions above.
|
||||
$TOKEN_AUTH = 'xyz';
|
||||
$TOKEN_AUTH = '__TOKEN_AUTH__';
|
||||
|
||||
// Maximum time, in seconds, to wait for the Matomo server to return the 1*1 GIF
|
||||
$timeout = 5;
|
||||
|
||||
Reference in New Issue
Block a user