Skip to content

Bump postcss-custom-selectors from 6.0.3 to 8.0.3 #1508

Bump postcss-custom-selectors from 6.0.3 to 8.0.3

Bump postcss-custom-selectors from 6.0.3 to 8.0.3 #1508

Workflow file for this run

name: Deploy website to S3
on:
pull_request_target:
types: [closed]
branches: [master]
jobs:
build-resume:
name: Build resume
runs-on: ubuntu-latest
if: github.event.pull_request.merged
steps:
- uses: actions/checkout@master
with:
ref: master
- name: Install latex and fonts
run: sudo apt-get install texlive-xetex fonts-arphic-gbsn00lp fonts-wqy-zenhei fonts-arphic-gkai00mp latex-cjk-all
- name: Compile English resume
run: xelatex -file-line-error -interaction=nonstopmode -recorder lucas-kjaero-zhang-resume.tex
working-directory: resume
- name: Compile Chinese resume
run: xelatex -file-line-error -interaction=nonstopmode -recorder lucas-kjaero-zhang-个人简历.tex
working-directory: resume
- uses: actions/upload-artifact@master
name: Upload English resume
with:
name: lucas-kjaero-zhang-resume.pdf
path: resume/lucas-kjaero-zhang-resume.pdf
- uses: actions/upload-artifact@master
name: Upload Chinese resume
with:
name: lucas-kjaero-zhang-resume-chinese.pdf
path: resume/lucas-kjaero-zhang-个人简历.pdf
build-frontend:
name: Build frontend
runs-on: ubuntu-latest
if: github.event.pull_request.merged
timeout-minutes: 5
steps:
- uses: actions/checkout@master
with:
ref: master
- uses: actions/[email protected]
name: Install node
with:
node-version: '12.x'
- name: Build dependencies
run: npm ci --only=production
- name: Build production bundle
env:
GOOGLE_ANALYTICS_ID: ${{ secrets.GOOGLE_ANALYTICS_TRACKING_ID }}
CI: true
run: npm run build
- uses: actions/upload-artifact@master
name: Upload website content
with:
name: gatsby-public
path: public
deploy:
name: Deploy to S3
needs: [build-resume, build-frontend]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@master
name: Download website content
with:
name: gatsby-public
path: public
- uses: actions/download-artifact@master
name: Download English resume
with:
name: lucas-kjaero-zhang-resume.pdf
path: public
- uses: actions/download-artifact@master
name: Download Chinese resume
with:
name: lucas-kjaero-zhang-resume-chinese.pdf
path: public
- 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-west-1
- name: Push to S3
run: aws s3 sync public s3://${{ secrets.AWS_S3_BUCKET }}/ --no-progress --delete
- name: Invalidate Cloudfront cache
run: aws cloudfront create-invalidation --distribution-id EWJC89C0ACD7D --paths /index.html /*
release:
name: Add artifacts to release
needs: [build-resume, build-frontend]
runs-on: ubuntu-latest
steps:
- uses: K-Phoen/semver-release-action@master
name: Calculate release version
id: release_version
with:
release_branch: master
release_strategy: none
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.release_version.outputs.tag }}
release_name: ${{ github.event.pull_request.title }}
- uses: actions/download-artifact@master
name: Download website content
with:
name: gatsby-public
path: public
- uses: actions/download-artifact@master
name: Download English resume
with:
name: lucas-kjaero-zhang-resume.pdf
path: public
- uses: actions/download-artifact@master
name: Download Chinese resume
with:
name: lucas-kjaero-zhang-resume-chinese.pdf
path: public
- name: Zip release
run: zip -r release.zip public
- uses: actions/upload-release-asset@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./release.zip
asset_name: release.zip
asset_content_type: application/zip
- uses: actions/upload-release-asset@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./public/lucas-kjaero-zhang-resume.pdf
asset_name: lucas-kjaero-zhang-resume.pdf
asset_content_type: application/pdf
- uses: actions/upload-release-asset@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./public/lucas-kjaero-zhang-个人简历.pdf
asset_name: lucas-kjaero-zhang-resume-zh.pdf
asset_content_type: application/pdf