Skip to content

Commit

Permalink
Added a step to github action to run npm build
Browse files Browse the repository at this point in the history
  • Loading branch information
onel committed Mar 20, 2024
1 parent 16b31db commit bb7b9a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/docker-hub-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ jobs:
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

-
name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'

-
name: Install dependencies
run: npm install

-
name: npm Build
run: npm run build

-
name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down
14 changes: 0 additions & 14 deletions app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,20 +58,6 @@

{% endif %}

{% if not DEV %}
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-137926322-1', 'auto');
ga('send', 'pageview');
</script>
<!-- End Google Analytics -->
{% endif %}

{# block used to load additional CSS on the header of the page #}
{% block assets %}
{% endblock %}
Expand Down

0 comments on commit bb7b9a1

Please sign in to comment.