Skip to content

Commit

Permalink
Fixed in using source
Browse files Browse the repository at this point in the history
Signed-off-by: Toomore Chiang <toomore0929@gmail.com>
  • Loading branch information
toomore committed Jan 8, 2025
1 parent c89d77b commit 136a249
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
os: ["ubuntu-20.04"]
os: ["ubuntu-24.04"]
python-version: ["3.12"]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -60,9 +60,9 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.DOC_S3_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOC_S3_KEY }}
run: cd docs; poetry shell; aws s3 rm s3://${{ secrets.DOC_BUCKET }}/docs --recursive
run: cd docs; source ./.venv/bin/activate; aws s3 rm s3://${{ secrets.DOC_BUCKET }}/docs --recursive
- name: Upload to S3
env:
AWS_ACCESS_KEY_ID: ${{ secrets.DOC_S3_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOC_S3_KEY }}
run: cd docs; poetry shell ; aws s3 sync ./output s3://${{ secrets.DOC_BUCKET }}/docs/ --acl public-read
run: cd docs; source ./.venv/bin/activate; aws s3 sync ./output s3://${{ secrets.DOC_BUCKET }}/docs/ --acl public-read

0 comments on commit 136a249

Please sign in to comment.