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
14 changes: 0 additions & 14 deletions .deepsource.toml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Test Build
name: Beta Build

on:
pull_request:

jobs:
build:
if: contains(github.event.pull_request.labels.*.name, 'beta')
name: Build
runs-on: ubuntu-latest
permissions:
Expand All @@ -20,7 +21,6 @@ jobs:
uses: actions/checkout@v3
with:
token: ${{ secrets.DISPATCH_REPO }}
fetch-depth: 0

- name: Webpack
run: |
Expand All @@ -36,28 +36,26 @@ jobs:
[ "${1}" != ".." ] &&
[ "${1}" != "./.git" ] &&
[ "${1}" != "./docs" ] &&
[ "${1}" != "./beta" ] &&
[ "${1}" != "./LICENSE" ] &&
[ "${1}" != "./README.md" ]; then
rm -rf ${1};
fi
}
export -f prune
find . -maxdepth 1 | while read file; do prune ${file}; done
rm docs/index.html docs/404.html
mv docs/beta/index.html docs/index.html
mv docs/beta/404.html docs/404.html

- name: Update CNAME
run : |
echo "beta.gitlang.net" > ./docs/CNAME
rm docs/index.html docs/404.html docs/CNAME
mv beta/index.html beta/404.html beta/CNAME docs/
mkdir .github .github/workflows
mv beta/beta-compile.yml beta/beta-branch.yml .github/workflows/

- name: Push to Beta
run: |
git config user.name "Mikl Wolfe"
git config user.email "wolfemikl@gmail.com"
git remote set-url --add --push origin https://github.com/chiefmikey/gitlang-beta.git
git add docs
git commit -am 'Update test build'
git push -fu origin HEAD:main
echo "Pushed to https://github.com/chiefmikey/gitlang-beta"
git add .
git commit -am 'Build beta branch'
git reset $(git commit-tree HEAD^{tree} -m 'Update beta branch')
git push -fu origin HEAD:refs/heads/${{ github.head_ref }}
echo "https://beta.gitlang.net"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Client Build
name: Production Build

on:
push:
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions beta/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
beta.gitlang.net
27 changes: 27 additions & 0 deletions beta/beta-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Beta Branch

on:
create

jobs:
build:
name: Branch
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.DISPATCH_REPO }}

- name: Open PR
run: |
echo test: ${{ github.head_ref }}
gh pr create
40 changes: 40 additions & 0 deletions beta/beta-compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Beta Compile

on:
pull_request:

jobs:
build:
name: Compile
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.DISPATCH_REPO }}
fetch-depth: 0

- name: Merge branches
run: |
git checkout -b beta-compile
echo $(gh pr list -s open --json)
for pull_request in $(gh pr list -s open --json branch); do
echo "Merge ${pull_request}"
git merge origin/${pull_request}
done

- name: Push to Main
run: |
git config user.name "Mikl Wolfe"
git config user.email "wolfemikl@gmail.com"
git add .
git commit -am 'Beta compile'
git push -u origin HEAD:main
File renamed without changes.