Skip to content

feat: publish repo to s3 (#4) #1

feat: publish repo to s3 (#4)

feat: publish repo to s3 (#4) #1

Workflow file for this run

name: Publish to S3
on:
workflow_dispatch:
push:
branches:
- master
env:
GIT_BRANCH: ${{ github.head_ref || github.ref_name }}
GIT_REPO_OWNER: ${{ github.repository_owner }}
GIT_REPO: ${{ github.repository }}
AWS_ROLE_ARN: arn:aws:iam::024848458133:role/github_oidc_FuelLabs_chain-configuration
AWS_S3_BUCKET: fuel-prod-chain-configuration-assets-origin
AWS_S3_REGION: us-east-1
jobs:
publish-to-s3:
permissions:

Check failure on line 19 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish to S3

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 19, Col: 5): Required property is missing: runs-on
contents: read
packages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ env.AWS_ROLE_ARN }}
aws-region: ${{ env.AWS_S3_REGION }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install s3cmd tool
run: pip install s3cmd
- name: Sync files to S3
run: s3cmd sync —exclude '.git*' --delete-removed ./ s3://${{ env.AWS_S3_BUCKET }}/