Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 23 additions & 5 deletions .github/workflows/build-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,30 @@ jobs:
npm install
NODE_ENV=production NODE_OPTIONS=--loader=ts-node/esm webpack --mode production

- name: Push Beta
run: |
- name: Beta Files
run : |
BRANCH=${{ github.head_ref }}
git config user.name "chiefmikey"
git config user.email "wolfemikl@gmail.com"
BRANCH=${{ github.head_ref }}
rm -rf docs/index.html docs/404.html docs/CNAME .github
# mkdir .github .github/workflows
# mv beta/workflows/beta-compile.yml beta/workflows/beta-pr.yml .github/workflows/
mv beta/index.html beta/404.html beta/CNAME docs/
git add .
git commit -am "${BRANCH}"

- name: Push Main
run: |
PR_TITLE=${{ github.event.pull_request.title }}
git remote set-url --add --push origin https://github.com/chiefmikey/gitlang-beta.git
git reset $(git commit-tree HEAD^{tree} -m 'Beta Branch')
git push -fu origin HEAD:refs/heads/${BRANCH}
git reset $(git commit-tree HEAD^{tree} -m "${PR_TITLE}")
git push -fu origin HEAD:main
echo "https://beta.gitlang.net"

# - name: Push Branch
# run: |
# BRANCH=${{ github.head_ref }}
# git remote set-url --add --push origin https://github.com/chiefmikey/gitlang-beta.git
# git reset $(git commit-tree HEAD^{tree} -m 'Beta Branch')
# git push -fu origin HEAD:refs/heads/${BRANCH}
# echo "https://beta.gitlang.net"
1 change: 0 additions & 1 deletion .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: SonarCloud Analysis

on:
push:
pull_request:

permissions:
Expand Down
File renamed without changes.
16 changes: 8 additions & 8 deletions beta/beta-pr.yml → beta/workflows/beta-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
git add .
git commit -am "Beta Merge"

- name: Beta Files
run : |
rm -rf docs/index.html docs/404.html docs/CNAME .github
mkdir .github .github/workflows
mv beta/beta-compile.yml beta/beta-pr.yml .github/workflows/
mv beta/index.html beta/404.html beta/CNAME docs/
git add .
git commit -am "Beta Files"
# - name: Beta Files
# run : |
# rm -rf docs/index.html docs/404.html docs/CNAME .github
# mkdir .github .github/workflows
# mv beta/beta-compile.yml beta/beta-pr.yml .github/workflows/
# mv beta/index.html beta/404.html beta/CNAME docs/
# git add .
# git commit -am "Beta Files"

- name: Delete Branches
run: |
Expand Down