Skip to content

fix: 暂时移除出错的校验 #13

fix: 暂时移除出错的校验

fix: 暂时移除出错的校验 #13

# This workflow runs whenever the AIO build workflow has completed. Deployment happens
# as part of a dedicated second workflow to avoid security issues where the building would
# otherwise occur in an authorized context where secrets could be leaked.
#
# More details can be found here:
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/.
name: Deploying AIO preview to another Github repository
on:
push:
branches:
- main
workflow_dispatch:
jobs:
aio-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Build
run: |
cd aio
yarn
yarn docs
ls -l ./dist/bin/aio/build
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: aio
path: ./dist/bin/aio/build
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- name: Clone Another Repository
run: |
git clone https://github.com/ng-docs/angular.en.git deploy-repo
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Copy Artifact
run: cp -r ./dist/bin/aio/build deploy-repo
- name: Commit and Push
run: |
cd deploy-repo
git add .
git commit -m "Deploy latest artifact"
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}