Skip to content

Commit

Permalink
Merge branch 'release/3.8.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
JackMorganNZ committed Aug 28, 2021
2 parents de1bebc + c87cbcd commit a67a27f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
name: Create static files
if: |
github.ref == 'refs/heads/develop' ||
startsWith(github.ref, 'refs/tags/')
github.event_name == 'release'
runs-on: ubuntu-20.04
needs: [
test-django-system-check,
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
name: Create interactive thumbnails
if: |
github.ref == 'refs/heads/develop' ||
startsWith(github.ref, 'refs/tags/')
github.event_name == 'release'
runs-on: ubuntu-20.04
strategy:
matrix:
Expand Down Expand Up @@ -231,7 +231,7 @@ jobs:

publish-prod-docker-image:
name: Create and publish prod image
if: startsWith(github.ref, 'refs/tags/')
if: github.event_name == 'release'
runs-on: ubuntu-20.04
needs: [
create-static-files,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ An example picture is shown below.

{image file-path="img/chapters/angle-of-view-ruler.jpg" alt="An example of taking a picture of a ruler."}

{image file-path="img/chapters/angle-of-view-ruler.png" alt="A diagram showing the components of the ruler technique."}
{image file-path="img/chapters/angle-of-view-ruler-diagram.png" alt="A diagram showing the components of the ruler technique."}

As seen in the diagram above, finding the angle of view becomes a simple trigonometry problem.
We derive the following equation for calculating the half angle of view.
Expand Down
2 changes: 1 addition & 1 deletion csfieldguide/config/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Module for Django system configuration."""

__version__ = "3.8.0"
__version__ = "3.8.1"
Binary file modified csfieldguide/static/img/chapters/angle-of-view-ruler.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ All notable changes to this project will be documented in this file.
We have listed major changes for each release below.
`All downloads are available on GitHub <https://github.com/uccser/cs-field-guide/releases/>`__

3.8.1
==============================================================================

**Release date:** 28th August 2021

**Changelog:**

- Fix encoding of JPG image that prevented minifying.
- Modify workflow to only produce production docker image run on published release.

3.8.0
==============================================================================

Expand Down

0 comments on commit a67a27f

Please sign in to comment.