docs(about): sync resume summary with linkedin #67
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: main pipeline | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
deploy: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
fetch-depth: 1 | |
- name: Prepare Hugo | |
run: git submodule update --init --recursive | |
- name: Setup Hugo | |
uses: peaceiris/actions-hugo@v2 | |
with: | |
hugo-version: 'latest' | |
extended: true | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Setup Graphviz | |
uses: ts-graphviz/setup-graphviz@v1 | |
- name: Build Crypto Diagrams | |
shell: bash | |
run: | | |
pushd './content/notes/crypto' | |
python -m pip install --upgrade pip | |
pip install -r ./dev-requirements.txt | |
inv d | |
popd | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build | |
- 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: Copy Files to Site bucket | |
run: aws s3 sync ./public s3://ballz-website | |
- name: Invalidate Cloudfront Cache | |
run: aws cloudfront create-invalidation --distribution-id EQ8NJ8VEOX653 --paths "/*" |