mirror of
https://github.com/ivabus/www
synced 2024-11-22 07:15:07 +03:00
uncomment whole ci test
This commit is contained in:
parent
0cd7a5cba9
commit
db22d98c4b
1 changed files with 54 additions and 54 deletions
108
.github/workflows/staging.yml
vendored
108
.github/workflows/staging.yml
vendored
|
@ -52,65 +52,65 @@ jobs:
|
|||
- uses: teaxyz/setup@v0
|
||||
with:
|
||||
target: build
|
||||
- run: ls ./public/+github.com
|
||||
# - name: Check for broken links
|
||||
# uses: lycheeverse/lychee-action@v1
|
||||
# with:
|
||||
# fail: true
|
||||
# args: --verbose --no-progress './public/**/*.md' './public/**/*.html'
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
# # update packages json data and rebuild again
|
||||
# - name: make images relative path to preview site
|
||||
# uses: getneil/jq-action@v1
|
||||
# with:
|
||||
# cmd: '.github/sync-thumb-images.sh src/data/packages.json'
|
||||
- name: Check for broken links
|
||||
uses: lycheeverse/lychee-action@v1
|
||||
with:
|
||||
fail: true
|
||||
args: --verbose --no-progress './public/**/*.md' './public/**/*.html'
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
# # intentional to rebuild packages again with relative image data
|
||||
# # the first one to test it against prod resources via lychee
|
||||
# - uses: teaxyz/setup@v0
|
||||
# with:
|
||||
# target: build
|
||||
# update packages json data and rebuild again
|
||||
- name: make images relative path to preview site
|
||||
uses: getneil/jq-action@v1
|
||||
with:
|
||||
cmd: '.github/sync-thumb-images.sh src/data/packages.json'
|
||||
|
||||
# - uses: actions/setup-node@v3
|
||||
# with:
|
||||
# node-version: 14
|
||||
# - uses: bahmutov/npm-install@v1
|
||||
# with:
|
||||
# working-directory: .cdk
|
||||
# intentional to rebuild packages again with relative image data
|
||||
# the first one to test it against prod resources via lychee
|
||||
- uses: teaxyz/setup@v0
|
||||
with:
|
||||
target: build
|
||||
|
||||
# - 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: us-east-1
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 14
|
||||
- uses: bahmutov/npm-install@v1
|
||||
with:
|
||||
working-directory: .cdk
|
||||
|
||||
# - name: Deploy to AWS
|
||||
# id: cdk_deploy
|
||||
# run: yarn deploy
|
||||
# working-directory: .cdk
|
||||
- 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: us-east-1
|
||||
|
||||
# - name: get cdk bucket
|
||||
# id: DEPLOY_BUCKET
|
||||
# run: |
|
||||
# BUCKET=$(aws s3 ls | grep $(echo teaxyz-pr-$GITHUB_REF_SLUG_URL | sed "s/-merge//") | grep -o '[^ ]*$')
|
||||
# echo "bucket=$BUCKET" >> $GITHUB_OUTPUT
|
||||
- name: Deploy to AWS
|
||||
id: cdk_deploy
|
||||
run: yarn deploy
|
||||
working-directory: .cdk
|
||||
|
||||
# - name: cp package images from prod to preview bucket
|
||||
# run: |
|
||||
# aws s3 cp s3://www.tea.xyz/Images/packages \
|
||||
# s3://$NEW_BUCKET/Images/packages \
|
||||
# --recursive
|
||||
# env:
|
||||
# NEW_BUCKET: ${{ steps.DEPLOY_BUCKET.outputs.bucket }}
|
||||
- name: get cdk bucket
|
||||
id: DEPLOY_BUCKET
|
||||
run: |
|
||||
BUCKET=$(aws s3 ls | grep $(echo teaxyz-pr-$GITHUB_REF_SLUG_URL | sed "s/-merge//") | grep -o '[^ ]*$')
|
||||
echo "bucket=$BUCKET" >> $GITHUB_OUTPUT
|
||||
|
||||
# - name: Seal Deployment
|
||||
# uses: bobheadxi/deployments@v1
|
||||
# if: always()
|
||||
# with:
|
||||
# step: finish
|
||||
# status: ${{ job.status }}
|
||||
# deployment_id: ${{ steps.deployment.outputs.deployment_id }}
|
||||
# env: ${{ env.STAGE }}
|
||||
# env_url: ${{ steps.cdk_deploy.outputs.env_url }}
|
||||
- name: cp package images from prod to preview bucket
|
||||
run: |
|
||||
aws s3 cp s3://www.tea.xyz/Images/packages \
|
||||
s3://$NEW_BUCKET/Images/packages \
|
||||
--recursive
|
||||
env:
|
||||
NEW_BUCKET: ${{ steps.DEPLOY_BUCKET.outputs.bucket }}
|
||||
|
||||
- name: Seal Deployment
|
||||
uses: bobheadxi/deployments@v1
|
||||
if: always()
|
||||
with:
|
||||
step: finish
|
||||
status: ${{ job.status }}
|
||||
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
|
||||
env: ${{ env.STAGE }}
|
||||
env_url: ${{ steps.cdk_deploy.outputs.env_url }}
|
||||
|
|
Loading…
Reference in a new issue