diff options
author | Daniil Baturin <daniil@baturin.org> | 2023-08-22 16:22:31 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2023-08-22 16:28:22 +0100 |
commit | e187a0c442583b5968d8a39662affabbfc722e28 (patch) | |
tree | 907c431fb9745f2140850214f95cb9e11d284bca | |
parent | c257bb2a239fdf32301b0ad9666aff1dc07919a8 (diff) | |
download | community.vyos.net-e187a0c442583b5968d8a39662affabbfc722e28.tar.gz community.vyos.net-e187a0c442583b5968d8a39662affabbfc722e28.zip |
Use a virtualenv for the Python install
and clean up the environment
-rw-r--r-- | .github/workflows/main.yml | 14 |
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 |