summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/main.yml14
1 files changed, 9 insertions, 5 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 551b3f9..92e279c 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -33,11 +33,13 @@ jobs:
run: |
echo Installing build dependencies
sudo apt-get update
- sudo apt-get -y install cmark make python3-boto3 python3-jinja2 npm
+ sudo apt-get -y install cmark make npm
sudo npm install -g sass@1.32.8
# PyGitHub changes its API recently, distros use older versions,
# so we install it from PyPI for now
- sudo pip install pygithub
+ python -m venv .
+ source ./bin/activate
+ pip install pygithub jinja2
- name: Install soupault
env:
@@ -50,11 +52,13 @@ jobs:
- name: Build the site
env:
- AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
- AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- SNAPSHOTS_BUCKET: ${{ secrets.SNAPSHOTS_BUCKET }}
+ GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
+ # SOUPAULT_PROFILE is "staging" for the main branch,
+ # it enabled a preview version warning.
+ # The "live" profile simply enabled listing nightly builds
SOUPAULT_OPTS: "--profile ${{ secrets.SOUPAULT_PROFILE }} --profile live"
run: |
+ source ./bin/activate
make all
- name: Deploy to Netlify