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