mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-22 05:01:25 -05:00
27 lines
860 B
YAML
27 lines
860 B
YAML
name: '[CI] Publish Snapshot'
|
|
# Copy /unstable/ to /snapshots/2022.09.1.RC1/
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
snapshot_version:
|
|
description: 'The calver version of this snapshot: 2022.09.1 or 2022.09.1.RC1'
|
|
type: string
|
|
required: true
|
|
|
|
jobs:
|
|
snapshot:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
steps:
|
|
- name: Configure AWS credentials
|
|
uses: aws-actions/configure-aws-credentials@v1.6.1
|
|
with:
|
|
aws-region: ${{ secrets.AWS_REGION }}
|
|
role-to-assume: ${{ secrets.AWS_OIDC_RUNNER_ROLE }}
|
|
- name: Sync to S3
|
|
run: >
|
|
aws s3 sync s3://pyscript.net/unstable/ s3://pyscript.net/snapshots/${{ inputs.snapshot_version }}/
|