Bump core-engine.d.ts #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: | |
- develop | |
workflow_run: | |
workflows: | |
- Inner Core Classpath | |
types: | |
- completed | |
concurrency: deploy | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
BRANCH_DEVELOP: develop | |
BRANCH_MASTER: master | |
BRANCH_ADB: adb | |
BRANCH_DECLARATIONS: includes | |
BRANCH_R8: r8 | |
BRANCH_STDINCLUDES: stdincludes | |
BRANCH_CLASSPATH: classpath | |
BRANCH_DEPLOY: deploy | |
if: github.event.workflow_run.conclusion != 'failure' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ env.BRANCH_DEVELOP }} | |
path: ${{ env.BRANCH_MASTER }} | |
fetch-depth: 0 | |
- name: Run trunc commit ref | |
working-directory: ${{ env.BRANCH_MASTER }} | |
run: | | |
git log --pretty=%H -1 . > toolchain/toolchain/bin/.commit | |
git log --pretty=%H -1 toolchain/toolchain/adb > toolchain/toolchain/adb/.commit | |
git log --pretty=%H -1 toolchain/toolchain/declarations > toolchain/toolchain/declarations/.commit | |
git log --pretty=%H -1 toolchain/toolchain/stdincludes > toolchain/toolchain/stdincludes/.commit | |
git log --pretty=%H -1 toolchain/toolchain/classpath > toolchain/toolchain/classpath/.commit | |
git log --pretty=%H -1 toolchain/toolchain/bin/r8 > toolchain/toolchain/bin/r8/.commit | |
- name: Run mv optional components to refs | |
run: | | |
mkdir $BRANCH_STDINCLUDES | |
mv $BRANCH_MASTER/toolchain/toolchain/stdincludes/.[!.]* \ | |
$BRANCH_MASTER/toolchain/toolchain/stdincludes/* $BRANCH_STDINCLUDES | |
mkdir $BRANCH_CLASSPATH | |
mv $BRANCH_MASTER/toolchain/toolchain/classpath/.[!.]* \ | |
$BRANCH_MASTER/toolchain/toolchain/classpath/* $BRANCH_CLASSPATH | |
- name: Configure git | |
run: | | |
git config --global user.name "MaXFeeD" | |
git config --global user.email "[email protected]" | |
git config --global push.autoSetupRemote true | |
- name: Push into master | |
working-directory: ${{ env.BRANCH_MASTER }} | |
run: | | |
git checkout -b $BRANCH_MASTER | |
git add --force --all . | |
git commit -m "Deploy" --quiet --no-verify | |
git push --force | |
- name: Run rm .github/workflows in deploy | |
run: rm -frd $BRANCH_MASTER/.github/workflows | |
- name: Run mv preffered components to refs | |
run: | | |
mkdir $BRANCH_ADB | |
mv $BRANCH_MASTER/toolchain/toolchain/adb/.[!.]* \ | |
$BRANCH_MASTER/toolchain/toolchain/adb/* $BRANCH_ADB | |
mkdir $BRANCH_DECLARATIONS | |
mv $BRANCH_MASTER/toolchain/toolchain/declarations/.[!.]* \ | |
$BRANCH_MASTER/toolchain/toolchain/declarations/* $BRANCH_DECLARATIONS | |
mkdir $BRANCH_R8 | |
mv $BRANCH_MASTER/toolchain/toolchain/bin/r8/.[!.]* \ | |
$BRANCH_MASTER/toolchain/toolchain/bin/r8/* $BRANCH_R8 | |
- name: Push into adb | |
working-directory: ${{ env.BRANCH_ADB }} | |
run: | | |
git config --global init.defaultBranch $BRANCH_ADB | |
git init | |
git add --force --all . | |
git commit -m "Deploy" --quiet --no-verify | |
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git | |
git push --force -u origin $BRANCH_ADB | |
- name: Push into includes | |
working-directory: ${{ env.BRANCH_DECLARATIONS }} | |
run: | | |
git config --global init.defaultBranch $BRANCH_DECLARATIONS | |
git init | |
git add --force --all . | |
git commit -m "Deploy" --quiet --no-verify | |
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git | |
git push --force -u origin $BRANCH_DECLARATIONS | |
- name: Push into r8 | |
working-directory: ${{ env.BRANCH_R8 }} | |
run: | | |
git config --global init.defaultBranch $BRANCH_R8 | |
git init | |
git add --force --all . | |
git commit -m "Deploy" --quiet --no-verify | |
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git | |
git push --force -u origin $BRANCH_R8 | |
- name: Push into stdincludes | |
working-directory: ${{ env.BRANCH_STDINCLUDES }} | |
run: | | |
git config --global init.defaultBranch $BRANCH_STDINCLUDES | |
git init | |
git add --force --all . | |
git commit -m "Deploy" --quiet --no-verify | |
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git | |
git push --force -u origin $BRANCH_STDINCLUDES | |
- name: Push into classpath | |
working-directory: ${{ env.BRANCH_CLASSPATH }} | |
run: | | |
git config --global init.defaultBranch $BRANCH_CLASSPATH | |
git init | |
git add --force --all . | |
git commit -m "Deploy" --quiet --no-verify | |
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git | |
git push --force -u origin $BRANCH_CLASSPATH | |
- name: Run rm .git in deploy | |
run: rm -frd $BRANCH_MASTER/.git | |
- name: Push into deploy | |
working-directory: ${{ env.BRANCH_MASTER }} | |
run: | | |
git config --global init.defaultBranch $BRANCH_DEPLOY | |
git init | |
git add --force --all . | |
git commit -m "Deploy" --quiet --no-verify | |
git remote add origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git | |
git push --force -u origin $BRANCH_DEPLOY |