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
21 changes: 20 additions & 1 deletion .github/workflows/build-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ jobs:

- name: Beta Files
run : |
rm -rf docs/index.html docs/404.html docs/CNAME .github
rm -rf docs/index.html docs/404.html docs/CNAME .github README.md
# 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/
mv beta/README.md .

- name: Prune Files
run : |
Expand All @@ -61,6 +62,24 @@ jobs:
BRANCH=${{ github.head_ref }}
git commit -am "${BRANCH}"

- name: Update README.md
run : |
BRANCH=${{ github.head_ref }}
PR_NUMBER="${{ github.event.pull_request.number }}"
PR_TITLE="${{ github.event.pull_request.title }}"
CURRENT_DATE=$(TZ=":US/Mountain" date +%y/%m/%d_%H:%M:%S)
echo -e "#### Pull Request:\n" >> README.md
echo -e "### [${PR_TITLE}](https://github.com/chiefmikey/gitlang/pull/${PR_NUMBER})\n" >> README.md
echo -e "#### Branch:\n" >> README.md
echo -e "### ${BRANCH}\n" >> README.md
echo -e "#### Date:\n" >> README.md
echo -e "### ${CURRENT_DATE%%_*}\n" >> README.md
echo -e "#### Time (MT):\n" >> README.md
echo -e "### ${CURRENT_DATE##*_}\n" >> README.md
echo -e "</div>\n" >> README.md
git add .
git commit -am "Beta README.md"

- name: Push Main
run: |
BRANCH=${{ github.head_ref }}
Expand Down
11 changes: 11 additions & 0 deletions beta/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div align=center>

<a href="https://gitlang.net">

<img src="docs/public/assets/img/gitlang.svg" style="height: 75px" alt="GitLang logo" />

</a>

### [beta.gitlang.net](https://beta.gitlang.net)

##### Current Deployment