-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from okfn-brasil/hml
Hml to prod
- Loading branch information
Showing
7 changed files
with
191 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Deploy HML | ||
on: | ||
push: | ||
branches: [ hml ] | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Sync | ||
env: | ||
dest: '${{vars.USER}}@${{vars.HOST}}:${{vars.THEMEPATHDEV}}' | ||
run: | | ||
echo "${{secrets.DEPLOY_KEY}}" > deploy_key | ||
chmod 600 ./deploy_key | ||
rsync -chav --delete \ | ||
-e 'ssh -i ./deploy_key -o StrictHostKeyChecking=no' \ | ||
--exclude /deploy_key \ | ||
--exclude /.git/ \ | ||
--exclude /.github/ \ | ||
--exclude /node_modules/ \ | ||
./ ${{env.dest}} | ||
- name: SSH Remote Commands | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{vars.HOST}} | ||
username: ${{vars.USER}} | ||
key: ${{secrets.DEPLOY_KEY}} | ||
script: | | ||
cd ${{vars.THEMEPATHDEV}} | ||
git checkout hml | ||
wp theme activate site-america-aberta --allow-root | ||
wp nginx-helper purge-all --allow-root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Deploy Main | ||
on: | ||
push: | ||
branches: [ main ] | ||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Sync | ||
env: | ||
dest: '${{vars.USER}}@${{vars.HOST}}:${{vars.THEMEPATHPROD}}' | ||
run: | | ||
echo "${{secrets.DEPLOY_KEY}}" > deploy_key | ||
chmod 600 ./deploy_key | ||
rsync -chav --delete \ | ||
-e 'ssh -i ./deploy_key -o StrictHostKeyChecking=no' \ | ||
--exclude /deploy_key \ | ||
--exclude /.git/ \ | ||
--exclude /.github/ \ | ||
--exclude /node_modules/ \ | ||
./ ${{env.dest}} | ||
- name: SSH Remote Commands | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{vars.HOST}} | ||
username: ${{vars.USER}} | ||
key: ${{secrets.DEPLOY_KEY}} | ||
script: | | ||
cd ${{vars.THEMEPATHPROD}} | ||
git checkout main | ||
wp theme activate site-america-aberta --allow-root | ||
wp nginx-helper purge-all --allow-root |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
/** | ||
* America Aberta Theme functions and definitions | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/theme-functions/ | ||
* | ||
* @package America Aberta | ||
* @since 1.0.0 | ||
*/ | ||
|
||
/** | ||
* Define Constants | ||
*/ | ||
define( 'CHILD_THEME_AMERICA_ABERTA_VERSION', '1.0.0' ); | ||
|
||
/** | ||
* Enqueue styles | ||
*/ | ||
function child_enqueue_styles() { | ||
|
||
wp_enqueue_style( 'america-aberta-theme-css', get_stylesheet_directory_uri() . '/style.css', array('astra-theme-css'), CHILD_THEME_AMERICA_ABERTA_VERSION, 'all' ); | ||
|
||
} | ||
|
||
add_action( 'wp_enqueue_scripts', 'child_enqueue_styles', 15 ); | ||
add_filter( 'auto_update_plugin', '__return_false' ); | ||
add_filter( 'auto_update_theme', '__return_false' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
/** | ||
* The header for Astra Theme. | ||
* | ||
* This is the template that displays all of the <head> section and everything up until <div id="content"> | ||
* | ||
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials | ||
* | ||
* @package Astra | ||
* @since 1.0.0 | ||
*/ | ||
|
||
if ( ! defined( 'ABSPATH' ) ) { | ||
exit; // Exit if accessed directly. | ||
} | ||
|
||
?><!DOCTYPE html> | ||
<?php astra_html_before(); ?> | ||
<html <?php language_attributes(); ?>> | ||
<head> | ||
<?php astra_head_top(); ?> | ||
<meta charset="<?php bloginfo( 'charset' ); ?>"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<?php | ||
if ( apply_filters( 'astra_header_profile_gmpg_link', true ) ) { | ||
?> | ||
<link rel="profile" href="https://gmpg.org/xfn/11"> | ||
<?php | ||
} | ||
?> | ||
<?php wp_head(); ?> | ||
<?php astra_head_bottom(); ?> | ||
|
||
<!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-DNFM4QYPMV"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-DNFM4QYPMV'); </script> | ||
|
||
</head> | ||
|
||
<body <?php astra_schema_body(); ?> <?php body_class(); ?>> | ||
<?php astra_body_top(); ?> | ||
<?php wp_body_open(); ?> | ||
|
||
<a | ||
class="skip-link screen-reader-text" | ||
href="#content" | ||
title="<?php echo esc_attr( astra_default_strings( 'string-header-skip-link', false ) ); ?>"> | ||
<?php echo esc_html( astra_default_strings( 'string-header-skip-link', false ) ); ?> | ||
</a> | ||
|
||
<div | ||
<?php | ||
echo astra_attr( | ||
'site', | ||
array( | ||
'id' => 'page', | ||
'class' => 'hfeed site', | ||
) | ||
); | ||
?> | ||
> | ||
<?php | ||
astra_header_before(); | ||
|
||
astra_header(); | ||
|
||
astra_header_after(); | ||
|
||
astra_content_before(); | ||
?> | ||
<div id="content" class="site-content"> | ||
<div class="ast-container"> | ||
<?php astra_content_top(); ?> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** | ||
Theme Name: America Aberta | ||
Author: Opará Tecnologia | ||
Author URI: https://opara.me | ||
Description: Tema filho do tema Astra, personalizado para OKBR. | ||
Version: 1.0.0 | ||
License: GNU General Public License v2 or later | ||
License URI: http://www.gnu.org/licenses/gpl-2.0.html | ||
Text Domain: america-aberta | ||
Template: astra | ||
*/ | ||
#astra-footer-menu .menu-item > a { | ||
color: var(--ast-global-color-5); | ||
font-size: 20px !important; | ||
font-weight: bold; | ||
font-family: 'Montserrat'; | ||
cursor: default; | ||
} | ||
|
||
.forms {margin-top:-2% !important} | ||
|
||
|
||
.wpforms-field.wpforms-field-content .wpforms-field-row p{ | ||
line-height: 150%; font-size: 16px !important | ||
} |