Bump dependencies #179
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: PR | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
# We need to use 5.10 for Publish (Swift 6 breaks) and that doesn't have an up to date version | |
# of python so run lint in a separate job | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Setup CloudFormation linter | |
uses: ScottBrenner/cfn-lint-action@v2 | |
- name: Run CloudFormation linter | |
run: cfn-lint -t stack.yaml | |
deploy: | |
needs: lint | |
name: Build and Deploy | |
runs-on: ubuntu-latest | |
container: swift:5.10 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build site | |
run: swift run | |
- name: Deploy S3 Website | |
if: ${{ github.event.pull_request.head.repo.full_name == 'vapor/blog' && github.actor != 'dependabot[bot]' }} | |
uses: brokenhandsio/s3-website-pr-action@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.BLOG_DEPLOYER_AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.BLOG_DEPLOYER_AWS_SECRET_ACCESS_KEY }} | |
with: | |
bucket-prefix: "vapor-blog-pulls" | |
folder-to-copy: "./Output" | |
bucket-region: "us-east-1" |