Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
59018ee
Remove deepsource
chiefmikey Aug 21, 2022
95222dc
Update beta build
chiefmikey Aug 21, 2022
3364ccd
Update prod build
chiefmikey Aug 21, 2022
cbd8776
Update beta build to push to branch
chiefmikey Aug 22, 2022
b34faa3
Add echo test
chiefmikey Aug 22, 2022
d388b40
Update beta build pull condition
chiefmikey Aug 22, 2022
d7c9298
Update prune for beta
chiefmikey Aug 22, 2022
1f19847
Include beta files
chiefmikey Aug 22, 2022
195f066
Update beta compile
chiefmikey Aug 22, 2022
996d81e
Update beta prune to leave beta dir
chiefmikey Aug 22, 2022
094450d
Update echo test
chiefmikey Aug 22, 2022
eb6faf0
Update beta build fetch depth
chiefmikey Aug 22, 2022
ef0887f
Update beta build to head_ref
chiefmikey Aug 22, 2022
4516dcf
Update beta build to refs/heads/branch
chiefmikey Aug 22, 2022
6c11b2f
Update beta build fetch depth
chiefmikey Aug 22, 2022
b2bf06c
Remove beta build test
chiefmikey Aug 22, 2022
a660dd7
Init beta branch
chiefmikey Aug 22, 2022
e748719
Reset commits in beta build
chiefmikey Aug 22, 2022
7d0f926
Update beta branch fetch depth
chiefmikey Aug 22, 2022
c85754b
Add force push to beta build
chiefmikey Aug 22, 2022
11894e1
Add git reset to beta build
chiefmikey Aug 22, 2022
12c17dd
Update beta build squash
chiefmikey Aug 22, 2022
8720774
Fix remote add to set-url
chiefmikey Aug 22, 2022
c41f4dc
Remove beta build fetch depth test
chiefmikey Aug 22, 2022
0118506
Add prod build add .
chiefmikey Aug 22, 2022
6358e6b
Update beta build to pr label beta
chiefmikey Aug 22, 2022
bee0031
Update beta build to types labeled
chiefmikey Aug 22, 2022
2f52993
Update types labeled syntax
chiefmikey Aug 22, 2022
335813f
Update pr types
chiefmikey Aug 22, 2022
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,16 @@
name: Test Build
name: Beta Build

on:
pull_request:
types:
- labeled
- opened
- synchronize
- reopened

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

- name: Webpack
run: |
Expand All @@ -36,28 +41,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 Expand Up @@ -49,6 +49,6 @@ jobs:
run: |
git config user.name "Mikl Wolfe"
git config user.email "wolfemikl@gmail.com"
git add docs
git add .
git commit -am 'Update production build'
git push -fu origin HEAD:client
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.