Skip to content

Commit

Permalink
ci: Try to upload to KS website
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversalzburg committed Nov 23, 2023
1 parent 88794c3 commit 19fcd34
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
contents: read
id-token: write

runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Select NodeJS version
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/schema-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Update Schemas and Presets

on:
push:
branches:
- main
paths:
- ".github/workflows/schema-update.yml"
- "packages/action-schema-update/*"
workflow_dispatch:

concurrency: schema-update

jobs:
deploy:
permissions:
contents: read
id-token: write

runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
with:
aws-region: eu-west-1
role-to-assume: arn:aws:iam::022327457572:role/ks-website-maintainer
role-session-name: GitHubActions

- name: Deploy to S3
run: |
aws s3 cp ./schemas s3://kitten-science-website/schemas/working-draft
aws s3 cp ./presets s3://kitten-science-website/baselines
aws s3 cp ./presets s3://kitten-science-website/presets

0 comments on commit 19fcd34

Please sign in to comment.