-
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.
Merge pull request #6 from CryZo/readme
Created build pipeline to automatically generate readme.*.md
- Loading branch information
Showing
5 changed files
with
166 additions
and
6 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
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,26 @@ | ||
name: Build Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'fastlane/**/*' | ||
- 'scripts/generate-readme.sh' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Generate Readme | ||
run: bash ${GITHUB_WORKSPACE}/scripts/generate-readme.sh | ||
|
||
- name: Commit & Push | ||
uses: Andro999b/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: main | ||
force: true | ||
message: 'Overwritten by Github Actions' |
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,30 @@ | ||
<div> | ||
<div align="left"> | ||
<img src="https://github.com/CryZo/PaintballNotificator/actions/workflows/android.yml/badge.svg"/> | ||
</div> | ||
<div align="right"> | ||
<a href="README.md">English</a> | <a href="README.de.md">Deutsch</a> | ||
</div> | ||
</div> | ||
|
||
<div align="center"> | ||
<img src="fastlane/metadata/android/de/images/icon.png" alt="App icon" /> | ||
</div> | ||
|
||
<h1>Paintball Notificator<br><sub>…damit du vor einem Match nicht mehr quer über den Platz brüllen musst.</sub></h1> | ||
|
||
> Simple App, um Bescheid zu geben, wenn alle Teams bereit sind. | ||
## Screenshots | ||
| | | | | | ||
|-|-|-|-| | ||
| ![](fastlane/metadata/android/de/images/phoneScreenshots/1.png) | ![](fastlane/metadata/android/de/images/phoneScreenshots/2.png) | ![](fastlane/metadata/android/de/images/phoneScreenshots/3.png) | ![](fastlane/metadata/android/de/images/phoneScreenshots/4.png) | | ||
|
||
## Changelog | ||
v1.0.0: | ||
- Material You Design | ||
- Dark Mode | ||
|
||
v1.1.0 | ||
- Die Match ID kann jetzt auch direkt geteilt werden. Dadurch muss sie nicht mehr abgetippt werden. | ||
|
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,30 @@ | ||
<div> | ||
<div align="left"> | ||
<img src="https://github.com/CryZo/PaintballNotificator/actions/workflows/android.yml/badge.svg"/> | ||
</div> | ||
<div align="right"> | ||
<a href="README.md">English</a> | <a href="README.de.md">Deutsch</a> | ||
</div> | ||
</div> | ||
|
||
<div align="center"> | ||
<img src="fastlane/metadata/android/en-US/images/icon.png" alt="App icon" /> | ||
</div> | ||
|
||
<h1>Paintball Notificator<br><sub>…so that you no longer have to shout across the pitch before a match.</sub></h1> | ||
|
||
> Simple app to let you know when all teams are ready. | ||
## Screenshots | ||
| | | | | | ||
|-|-|-|-| | ||
| ![](fastlane/metadata/android/en-US/images/phoneScreenshots/1.png) | ![](fastlane/metadata/android/en-US/images/phoneScreenshots/2.png) | ![](fastlane/metadata/android/en-US/images/phoneScreenshots/3.png) | ![](fastlane/metadata/android/en-US/images/phoneScreenshots/4.png) | | ||
|
||
## Changelog | ||
v1.0.0: | ||
- Material You design | ||
- Dark mode | ||
|
||
v1.1.0 | ||
- You can share the match id now directly using the build in Android share sheet. | ||
|
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,70 @@ | ||
#!/bin/sh | ||
|
||
cd $(dirname $0)/.. | ||
|
||
function header { | ||
echo '<div>' | ||
echo '<div align="left">' | ||
echo '<img src="https://github.com/CryZo/PaintballNotificator/actions/workflows/android.yml/badge.svg"/>' | ||
echo '<img src="https://github.com/CryZo/PaintballNotificator/actions/workflows/docs.yml/badge.svg"/>' | ||
echo '</div>' | ||
echo '<div align="right">' | ||
echo -n '<a href="README.md">English</a> | ' | ||
echo '<a href="README.de.md">Deutsch</a>' | ||
echo '</div>' | ||
echo '</div>' | ||
} | ||
|
||
function generate_readme { | ||
OUT=$1 | ||
LANG=$2 | ||
FASTLANE_PREFIX=fastlane/metadata/android/$LANG | ||
|
||
header > $OUT | ||
echo '' >> $OUT | ||
|
||
echo '<div align="center">' >> $OUT | ||
echo "<img src=\"$FASTLANE_PREFIX/images/icon.png\" alt=\"App icon\" />" >> $OUT | ||
echo '</div>' >> $OUT | ||
echo '' >> $OUT | ||
|
||
echo "<h1>$(cat $FASTLANE_PREFIX/title.txt)<br><sub>$(cat $FASTLANE_PREFIX/short_description.txt)</sub></h1>" >> $OUT | ||
echo '' >> $OUT | ||
echo "> $(cat $FASTLANE_PREFIX/full_description.txt)" >> $OUT | ||
echo '' >> $OUT | ||
|
||
|
||
echo "## Screenshots" >> $OUT | ||
|
||
echo -n "| " >> $OUT | ||
for file in $FASTLANE_PREFIX/images/phoneScreenshots/* | ||
do | ||
echo -n " |" >> $OUT | ||
done | ||
echo "" >> $OUT | ||
|
||
echo -n "|" >> $OUT | ||
for file in $FASTLANE_PREFIX/images/phoneScreenshots/* | ||
do | ||
echo -n "-|" >> $OUT | ||
done | ||
echo "" >> $OUT | ||
|
||
echo -n "| " >> $OUT | ||
for file in $FASTLANE_PREFIX/images/phoneScreenshots/* | ||
do | ||
echo -n "![]($file) | " >> $OUT | ||
done | ||
echo -e '\n' >> $OUT | ||
|
||
|
||
echo "## Changelog" >> $OUT | ||
for file in $FASTLANE_PREFIX/changelogs/* | ||
do | ||
cat $file >> $OUT | ||
echo -e '\n' >> $OUT | ||
done | ||
} | ||
|
||
generate_readme README.md en-US | ||
generate_readme README.de.md de |