Skip to content

fix: update cicd

fix: update cicd #8

Workflow file for this run

name: Deploy
on:
push:
branches:
- test-acc-id
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy'
type: environment
required: true
jobs:
test-acc-id:
name: test acc id
runs-on: ubuntu-20.04
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- name: get accid
env:
AWS_CLOUDFRONT_DISTRIBUTIONS_ID: ${{ vars.AWS_CLOUDFRONT_DISTRIBUTIONS_ID }}
run: |
echo "repository variable : $AWS_CLOUDFRONT_DISTRIBUTIONS_ID"
aws cloudfront create-invalidation --distribution-id $AWS_CLOUDFRONT_DISTRIBUTIONS_ID --paths "/starknet/*"