Merge pull request #22 from the-markup/scss-in-svelte #28
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: "Auto-Deploy to Staging" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Upload to Amazon S3 | |
runs-on: ubuntu-latest | |
# These permissions are needed to interact with GitHub's OIDC Token endpoint. | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Configure AWS credentials from Test account | |
uses: aws-actions/configure-aws-credentials@9e1405074160aa259ccddd6ba2520c8cfe6fbefa | |
with: | |
role-to-assume: arn:aws:iam::183122854331:role/github-graphics-staging-upload | |
aws-region: us-east-1 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: "20.5.0" | |
- run: npm install | |
- run: npm run deploy -- staging |