-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Now we have a new icon. - revamped utils, ported modules - Moved, deletedsome modules - Corrected README.md - Updated TODO list, added dir structure
- Loading branch information
Showing
36 changed files
with
596 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,66 @@ | ||
name: Release on Version Change | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.version' | ||
push: | ||
paths: | ||
- ".version" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Read version | ||
id: get_version | ||
run: echo "VERSION=$(cat .version)" >> $GITHUB_ENV | ||
|
||
- name: Determine if it's a pre-release | ||
id: pre_release_check | ||
run: | | ||
if [[ "${{ env.VERSION }}" == 0* ]]; then | ||
echo "PRE_RELEASE=true" >> $GITHUB_ENV | ||
echo "RELEASE_NAME=${{ env.VERSION }}-alpha" >> $GITHUB_ENV | ||
else | ||
echo "PRE_RELEASE=false" >> $GITHUB_ENV | ||
echo "RELEASE_NAME=${{ env.VERSION }}" >> $GITHUB_ENV | ||
fi | ||
- name: Get repository name | ||
id: get_repo_name | ||
run: echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_ENV | ||
|
||
- name: Create a tar.gz archive | ||
run: | | ||
mkdir release | ||
rsync -av --progress . ./release --exclude=".git" --exclude=".github" --exclude="TODO.md" --exclude="README.md" | ||
tar -czvf ./${{ env.REPO_NAME }}.tar.gz -C release . | ||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ env.VERSION }} | ||
body: "version: ${{ env.VERSION }}." | ||
prerelease: ${{ env.PRE_RELEASE }} | ||
name: ${{ env.RELEASE_NAME }} | ||
files: "${{ env.REPO_NAME }}.tar.gz" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} | ||
|
||
- name: Generate changelog from commits | ||
id: generate_changelog | ||
run: | | ||
CHANGELOG=$(git log -1 --pretty=%B | tr -d '\n' | sed 's/"/\\"/g') | ||
echo "CHANGELOG=${CHANGELOG}" >> $GITHUB_ENV | ||
- name: Update release with changelog | ||
run: | | ||
gh release edit ${{ env.VERSION }} --notes "${{ env.CHANGELOG }}" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Read version | ||
id: get_version | ||
run: echo "VERSION=$(cat .version)" >> $GITHUB_ENV | ||
|
||
- name: Determine if it's a pre-release | ||
id: pre_release_check | ||
run: | | ||
if [[ "${{ env.VERSION }}" == 0* ]]; then | ||
echo "RELEASE_NAME=${{ env.VERSION }}-alpha" >> $GITHUB_ENV | ||
else | ||
echo "RELEASE_NAME=${{ env.VERSION }}" >> $GITHUB_ENV | ||
fi | ||
- name: Get repository name | ||
id: get_repo_name | ||
run: echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_ENV | ||
|
||
- name: Create a tar.gz archive | ||
run: | | ||
mkdir release | ||
rsync -av --progress . ./release \ | ||
--exclude=".git"\ | ||
--exclude=".github"\ | ||
--exclude="TODO.md"\ | ||
--exclude="README.md"\ | ||
--exclude=".editorconfig"\ | ||
--exclude=".prettierignore" | ||
tar -czvf ./${{ env.REPO_NAME }}.tar.gz -C release . | ||
- name: Create GitHub Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ env.VERSION }} | ||
body: "version: ${{ env.VERSION }}." | ||
prerelease: false | ||
name: ${{ env.RELEASE_NAME }} | ||
files: "${{ env.REPO_NAME }}.tar.gz" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} | ||
|
||
- name: Generate changelog from commits | ||
id: generate_changelog | ||
run: | | ||
CHANGELOG=$(git log -1 --pretty=%B | sed ':a;N;$!ba;s/\n/\\n/g' | sed 's/"/\\"/g') | ||
echo "CHANGELOG=${CHANGELOG}" >> $GITHUB_ENV | ||
- name: Update release with changelog | ||
run: | | ||
gh release edit ${{ env.VERSION }} --notes "$(echo -e "${{ env.CHANGELOG }}")" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
README.md | ||
TODO.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.4.3 | ||
0.5.3 |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# UI elements | ||
|
||
[ui] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.