install pip

This commit is contained in:
sillyguodong 2023-05-26 17:32:03 +08:00
parent 97264b9bae
commit 04f1f8a19c
No known key found for this signature in database
GPG Key ID: 4A0646FA86256DF4
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.preview_aws_access_token }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.preview_aws_secret_access_key }}
run: |
apt update -y && apt install -y rsync python python3-pip
pip install awscli
aws s3api create-bucket --acl public-read --bucket preview-gitea-org-website-${{ github.event.pull_request.head.repo.name }}-${{ github.event.pull_request.number }} --region ${{ env.AWS_REGION }}} --create-bucket-configuration LocationConstraint=${{ env.AWS_REGION }}} || /bin/true
aws s3 website s3://preview-gitea-org-website-${{ github.event.pull_request.head.repo.name }}-${{ github.event.pull_request.number }}/ --index-document index.html --error-document error.html || /bin/true