Address comments reported via site. #227
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: generate-release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
generate_release: | |
runs-on: ubuntu-latest | |
name: Generate release. | |
steps: | |
- name: Checkout project. | |
uses: actions/checkout@v2 | |
- name: Build Docker image. | |
run: | | |
docker/build.sh cheats-box | |
- name: Generate PDF. | |
run: | | |
docker run \ | |
--rm \ | |
--volume $PWD:/workspace/cheats.rs \ | |
--cap-add=SYS_ADMIN \ | |
cheats-box ./generate_pdf.sh cheats.rs/rust_cheat_sheet.pdf | |
- name: Configure AWS credentials. | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- name: Upload PDF to S3. | |
run: | | |
aws s3 cp rust_cheat_sheet.pdf s3://cheats.rs/rust_cheat_sheet.pdf |