diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index ff862af..ff00f0e 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -35,7 +35,7 @@ jobs: - uses: satackey/action-docker-layer-caching@v0.0.11 continue-on-error: true - name: Install sass - run: pip install libsass==0.21.0 + run: pip install libsass==0.21.0 awscli==1.20.20 - name: Produce production CSS run: ./update_css diff --git a/update_css b/update_css index 05a9da1..a62687c 100755 --- a/update_css +++ b/update_css @@ -9,6 +9,7 @@ if [ "${HASWORN_ENV:-prod}" = 'dev' ]; then fi sha=$( shasum -a 256 /tmp/static.css | cut -c1-7 ) +which aws aws s3 cp \ --acl public-read \ --cache-control "max-age=31536000, immutable" \