Updated Controls #22
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: CI | |
on: | |
push: | |
branches: ["main"] | |
permissions: write-all | |
# actions: write | |
# contents: write | |
# pages: write | |
# id-token: write | |
# pull-requests: write | |
# deployments: write | |
# checks: write | |
jobs: | |
copy-file: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Declare Patch Variable | |
shell: bash | |
run: | | |
echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" | |
- name: Set Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Run Yarn Install | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install | |
- name: Build production bundle | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: kbve | |
- name: Pushes test file | |
uses: dmnemec/copy_file_to_another_repo_action@main | |
env: | |
API_TOKEN_GITHUB: ${{ secrets.UNITY_PAT }} | |
GITSHA: ${{ github.sha }} | |
with: | |
source_file: 'yorha-ui' | |
destination_repo: 'kbve/kbve.com' | |
destination_folder: '/public/embed/' | |
destination_branch: 'dev' | |
#destination_branch_create: 'patch-${{ env.GITSHA }}' | |
destination_branch_create: 'patch-yorha-ui' | |
user_email: '[email protected]' | |
user_name: 'h0lybyte' | |
commit_message: 'YoRHa UI - Sync ' |