-
Notifications
You must be signed in to change notification settings - Fork 2
Actions rebased #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
623cb71
bb8d3a1
b5adbc8
9f80d4d
6fd1a6d
e77728b
5981477
a471368
98f8237
fb5129a
a21fcd8
3223ea2
f6e9095
eb99560
495013a
65c3710
58be0a1
9a2a62d
3be73b5
d452782
1181b98
2b1d245
9244f51
ef38813
a210756
b7441d2
9977e26
1caca0c
0cbe483
2a10ce2
e917ef1
2c3eb45
a37f5e2
2574c6f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
name: Automatic build and release | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build_win: | ||
name: Build for Windows | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: make | ||
run: | | ||
make test | ||
make clean | ||
make echeck | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: binaries.win | ||
# note: mingw gcc appears to ignore -o option | ||
path: echeck.exe | ||
|
||
build_mac: | ||
name: Build for MacOS | ||
runs-on: macOS-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: make | ||
run: | | ||
make test | ||
make clean | ||
make echeck | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: binaries.mac | ||
path: echeck | ||
|
||
build_nix: | ||
name: Build and zip | ||
needs: [ build_win, build_mac ] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# get all tags | ||
fetch-depth: 0 | ||
- name: make | ||
run: | | ||
make test | ||
make clean | ||
make echeck | ||
|
||
- name: configure tag | ||
run: | | ||
VERSION=$(grep echeck_version echeck.c | head -1 | cut -f2 -d'"') | ||
if [[ ! "${VERSION}" =~ ^[0-9][.][0-9]+[.][0-9]+$ ]]; then | ||
echo "version tag X.Y.Z not found: $VERSION" | ||
exit 1 | ||
fi | ||
LASTTAG=$(git tag -l "v*" --sort='-committerdate' | head -1) | ||
if [[ ! "${LASTTAG}" =~ ^v[0-9][.][0-9]+[.][0-9]+$ ]]; then | ||
echo "last tag vX.Y.Z not found: $LASTTAG" | ||
exit 1 | ||
fi | ||
VTAG=$(git tag -l "v$VERSION") | ||
|
||
echo "latest tag: $LASTTAG, current version: $VERSION, existing tag: $VTAG" | ||
|
||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
git remote -v | ||
REMOTE="https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" | ||
|
||
if [[ "v$VERSION" != "$LASTTAG" && "$VTAG" == "" ]]; then | ||
# create new tag and release draft | ||
TAG="v$VERSION" | ||
name="Release $VERSION" | ||
body="Dies ist ein stabiles Release. Diese Beschrebung solle geändert werden.\n\nThis is a stable release draft. This description should be updated.\n\n$date" | ||
draft=true | ||
prerelease=false | ||
|
||
git tag "$TAG" | ||
git push "$REMOTE" "$TAG" | ||
elif [[ "$VTAG" != "" && "$VTAG" == "v$VERSION" ]]; then | ||
# update vX.Y-latest tag and prerelease | ||
draft=false | ||
prerelease=true | ||
name="Pre-Release $VERSION" | ||
body="Dies ist eine automatisch generierte Version mit den neuesten Änderungen. Sie kann eher Fehler enthalten als eine stabile Version.\n\nThis is an automatic release of the latest version. It is less safe to use than a stable version.\n\n$date" | ||
short=$(echo "${VERSION}" | cut -d. -f-2) | ||
TAG="${short}-latest" | ||
|
||
git tag -f "$TAG" | ||
git push --force "$REMOTE" "$TAG" | ||
else | ||
echo "not creating any release" | ||
draft= | ||
prerelease= | ||
fi | ||
|
||
body="${body//'%'/'%25'}" | ||
body="${body//'\n'/'%0A'}" | ||
body="${body//'\r'/'%0D'}" | ||
|
||
echo "::set-env name=PRERELEASE::$prerelease" | ||
echo "::set-env name=DRAFT::$draft" | ||
echo "::set-env name=VERSION::$VERSION" | ||
echo "::set-env name=TAG::$TAG" | ||
echo "::set-env name=NAME::$name" | ||
echo "::set-env name=BODY::$body" | ||
|
||
- name: Download all binaries | ||
uses: actions/download-artifact@v2 | ||
|
||
- name: Create zip | ||
run: | | ||
mv binaries.mac/echeck ./echeck.macos | ||
mv binaries.win/echeck.exe ./echeck.exe | ||
zip -r echeck.zip echeck echeck.macos echeck.exe e2 e3 changelog.txt LIESMICH.txt README.txt | ||
|
||
- name: Upload zip artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: release | ||
path: echeck.zip | ||
|
||
- name: Create release | ||
uses: meeDamian/[email protected] | ||
if: env.PRERELEASE != '' && env.DRAFT != '' | ||
with: | ||
prerelease: ${{ env.PRERELEASE }} | ||
draft: ${{ env.DRAFT }} | ||
allow_override: true | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
tag: ${{ env.TAG }} | ||
# commitish: ${{ github.ref }} | ||
name: ${{ env.NAME }} | ||
body: ${{ env.BODY }} | ||
gzip: folders | ||
files: > | ||
echeck.zip |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ Damm | |
Karawanserei | ||
Tunnel | ||
Taverne | ||
Steinkreis |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,8 @@ | |
|
||
0PERSONSLEARN, Einheit %s hat 0 Personen und wird von Einheit | ||
0PERSONSTEACH, Einheit %s hat 0 Personen und lehrt Einheit | ||
1ATTACKPERUNIT, Pro Einheit muß ein ATTACKIERE-Befehl gegeben werden | ||
ennorehling marked this conversation as resolved.
Show resolved
Hide resolved
|
||
1CARRYPERUNIT, Pro Einheit muß ein TRANSPORTIERE-Befehl gegeben werden | ||
1ATTACKPERUNIT, Pro Einheit muss ein ATTACKIERE-Befehl gegeben werden | ||
1CARRYPERUNIT, Pro Einheit muss ein TRANSPORTIERE-Befehl gegeben werden | ||
1PERSONPERMAGEUNIT, Magiereinheiten dürfen nur eine Person haben | ||
ACTIVATED, ~aktiviert. | ||
ALREADYUSEDINLINE, "TEMP %s" wurde in Zeile %d schon gebraucht | ||
|
@@ -37,9 +37,10 @@ CANTMAINTAINBUILDING, Einheit %s kann ein Gebäude nicht erhalten, es fehlen noc | |
CANTMAKETHAT, Sowas kann man nicht machen | ||
CANTREADFILE, Kann Datei '%s' nicht lesen\n | ||
CANTRENAMEOBJECT, Objekt kann nicht umbenannt werden | ||
CHECKYOURORDERS, \nBitte überprüfe, ob Du die Befehle korrekt eingesandt hast.\nBeachte dabei besonders, daß die Befehle nicht als HTML, Word-Dokument\noder als Attachment (Anlage) eingeschickt werden dürfen.\n | ||
CHECKYOURORDERS, \nBitte überprüfe, ob du die Befehle korrekt eingesandt hast.\nBeachte dabei besonders, dass die Befehle nicht als HTML, Word-Dokument\noder als Attachment (Anlage) eingeschickt werden dürfen.\n | ||
COMBATSPELLSET, Kampfzauber gesetzt | ||
DELIVERYTO, ; Zustellung an | ||
DELIVERYTO, ; Zustellung an | ||
DESTROYNOSTREET, nur ZERSTOERE oder ZERSTOERE STRASSE sind erlaubt | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dafür wünsche ich mir ich einen neuen PR, der mit dem neuen gettext Code funktioniert. |
||
DIRECTION, <richtung> | ||
DISCOVERED, ~entdeckt.\n | ||
DOESNTCARRY, Einheit %s fährt mit Einheit %s, diese transportiert aber nicht | ||
|
@@ -51,11 +52,11 @@ ERRORHELP, Helfe-Status falsch | |
ERRORINLINE, Fehler in Zeile | ||
ERRORLEVELPARAMETERS, Fehler bei STUFE-Parameter | ||
ERRORNAMEFOREIGN, BENENNE FREMD nicht mit %s | ||
ERROROPINION, Nummer der Meinung muß größer 0 sein | ||
ERROROPINION, Nummer der Meinung muss größer 0 sein | ||
ERRORREGION, REGION fehlerhaft | ||
ERRORREGIONPARAMETER, Fehler bei REGION-Parameter | ||
ERRORSPELLSYNTAX, [ ] und < > dürfen nicht mit eingegeben werden! | ||
ERRORSURVEY, Nummer der Umfrage muß größer 0 sein | ||
ERRORSURVEY, Nummer der Umfrage muss größer 0 sein | ||
FACTION0USED, Partei 0 verwendet | ||
FACTIONINVALID, Partei "%s" ungültig | ||
FACTIONMISSING, Partei fehlt | ||
|
@@ -73,6 +74,7 @@ ISUSEDIN2REGIONS, "TEMP %s" wird in Region %d,%d und Region %d,%d (Zeile %d) geb | |
ISNOTCOMBATSPELL, k | ||
ITEM, Gegenstand | ||
LINETOOLONG, Zeile zu lang | ||
LOCALEMISMATCH, Locales '%s' von ECheck und '%s' der Befehle passen nicht zusammen | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. commit wegen Einführung von neuer Message vorerst nicht integriert. |
||
LONGCOMBATNOLONGORDER, Längere Kämpfe schließen den langen Befehl aus | ||
LONGORDERMISSING, Einheit %s hat keinen langen Befehl bekommen | ||
MAGIC, Magie | ||
|
@@ -92,9 +94,10 @@ MISSINGNUMRECRUITS, Anzahl Rekruten fehlt | |
MISSINGOFFER, Geldgebot fehlt | ||
MISSINGPARAMETERS, Parameter STUFE oder REGION fehlt | ||
MISSINGPASSWORD, Kein Passwort angeben | ||
MISSINGSTART, ERESSEA partei-nummer "Passwort" fehlt oder versehentliches NAECHSTER! | ||
MISSINGUNITNUMBER, Keine Einheitsnummer | ||
MOVENOTPOSSIBLEWITHPAUSE, NACH geht nicht mit PAUSE | ||
MSGTO, BOTSCHAFT AN PARTEI, BOTSCHAFT AN EINHEIT oder BOTSCHAFT AN REGION | ||
MSGTO, BOTSCHAFT PARTEI, BOTSCHAFT EINHEIT oder BOTSCHAFT REGION | ||
NAMECONTAINSBRACKETS, Namen dürfen keine Klammern enthalten | ||
NEEDBOTHCOORDINATES, Beide Koordinaten müssen angegeben werden | ||
NOCARRIER, Kann zu transportierende Einheit nicht ermitteln | ||
|
@@ -109,6 +112,7 @@ NOTEXT, Kein Text | |
NOTFOUND, nicht gefunden | ||
NTOOBIG, Zahl zu groß | ||
NUMBER0SENSELESS, Anzahl 0 macht keinen Sinn | ||
NUMBEREXPECTED, Zahl erwartet | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Auch hier wünsche ich mir einen neuen PR, weil cherry-picking nicht mehr möglich ist. |
||
NUMBERNOTPOSSIBLE, Anzahl hier nicht möglich | ||
NUMCASTLEMISSING, Nummer der Burg fehlt | ||
NUMLUXURIESMISSING, Anzahl Luxusgüter fehlt | ||
|
@@ -149,6 +153,7 @@ TEMPUNITSCANTRESERVE, TEMP-Einheiten können nichts reservieren! Bitte GIB benut | |
TEMPUNITSCANTGIVE, TEMP-Einheiten können nichts übergebenen! Befehlsreihenfolge beachten! | ||
TEXTTOOLONG, Text zu lang (max. %d) | ||
THERE, Es | ||
TOOMANYPARAMETERS, Zu viele Parameter | ||
UNIT, Einheit | ||
UNITS, Einheiten | ||
UNIT0NOTPOSSIBLE, Einheit 0 bzw. Bauern geht hier nicht | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,3 +29,5 @@ Wasser des Lebens | |
Wundsalben | ||
Lerntrank | ||
Lerntränke | ||
Talenttrunk | ||
Talenttrünke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
github workflows scheint mir ein neues feature zu sein, das ich gerne als eigenen PR gesehen hätte, und deshalb heute überspringe.