Skip to content

PROD deploy version v0.1.22 to FALLBACK by @leomendoza123 #16

PROD deploy version v0.1.22 to FALLBACK by @leomendoza123

PROD deploy version v0.1.22 to FALLBACK by @leomendoza123 #16

Workflow file for this run

name: 'Homepage PROD Deploy'
run-name: 'PROD deploy version ${{ inputs.version }} to ${{ inputs.environment }} by @${{ github.actor }}'
on:
workflow_dispatch:
inputs:
version:
type: string
description: 'Tag version to deploy'
required: true
default: 'v0.1.0'
environment:
description: 'Deployment environment'
required: true
default: 'default'
type: choice
options:
- FALLBACK
- PROD
jobs:
upload_prod_wordpress_to_qa_s3:
environment: qa.orcid.org
needs: release_prod_wordpress_new_version

Check failure on line 25 in .github/workflows/prod-deploy.yml

View workflow run for this annotation

GitHub Actions / Homepage PROD Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/prod-deploy.yml (Line: 25, Col: 12): Job 'upload_prod_wordpress_to_qa_s3' depends on unknown job 'release_prod_wordpress_new_version'.
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Switch to specific tag
run: |
git fetch --tags
git checkout ${{ github.event.inputs.version }}
- name: Upload HTML to S3
uses: reggionick/s3-deploy@v4
with:
folder: dist
bucket: ${{secrets.QA_AWS_BUCKET}}
bucket-region: ${{ secrets.AWS_REGION }}
dist-id: ${{secrets.QA_CLOUDFRONT_DIST_ID}}
invalidation: /
delete-removed: true
no-cache: true
private: true
files-to-include: '{.*/**,**}'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
upload_prod_wordpress_to_prod_s3:
runs-on: ubuntu-latest
environment: orcid.org
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Switch to specific tag
run: |
git fetch --tags
git checkout ${{ github.event.inputs.version }}
- name: Set environment variables
run: |
if [ "${{ github.event.inputs.environment }}" != "FALLBACK" ]; then
echo "AWS_BUCKET=${{ secrets.PROD_AWS_BUCKET }}" >> $GITHUB_ENV
echo "CLOUDFRONT_DIST_ID=${{ secrets.PROD_CLOUDFRONT_DIST_ID }}" >> $GITHUB_ENV
else
echo "AWS_BUCKET=${{ secrets.FALLBACK_AWS_BUCKET }}" >> $GITHUB_ENV
echo "CLOUDFRONT_DIST_ID=${{ secrets.FALLBACK_CLOUDFRONT_DIST_ID }}" >> $GITHUB_ENV
fi
- name: Upload HTML to S3
uses: reggionick/s3-deploy@v4
with:
folder: dist
bucket: ${{ env.AWS_BUCKET }}
bucket-region: ${{ secrets.AWS_REGION }}
dist-id: ${{ env.CLOUDFRONT_DIST_ID }}
invalidation: /
delete-removed: true
no-cache: true
private: true
files-to-include: '{.*/**,**}'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'