Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Youngblood say you want me
Browse files Browse the repository at this point in the history
  • Loading branch information
RaniAgus committed Mar 24, 2024
1 parent 84679c2 commit fec75ce
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/scaffold.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Generate tp-scaffold files
name: Build scaffold

on:
workflow_dispatch:
Expand All @@ -25,19 +25,17 @@ jobs:
with:
bun-version: latest

- name: Generate tp-scaffold files
run: bun ./scripts/scaffold.js --dest tp-scaffold --projects "${{ github.event.inputs.projects }}" --staticLibs "${{ github.event.inputs.static }}"
- name: Generate scaffold files
run: bun ./scripts/scaffold.js --projects "${{ github.event.inputs.projects }}" --staticLibs "${{ github.event.inputs.static }}"

- name: Push to tp-scaffold branch
working-directory: tp-scaffold
- name: Push to scaffold branch
run: |
git init
git switch --orphan ${{ github.event.inputs.branch }}
mv -r dist/* .
git add .
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git commit -m "Generate tp-scaffold files"
git branch -M ${{ github.event.inputs.branch }}
git remote add origin "https://${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git push -f -u origin ${{ github.event.inputs.branch }}
git push -f origin ${{ github.event.inputs.branch }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fec75ce

Please sign in to comment.