-
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.
- Loading branch information
1 parent
a45755e
commit 169740a
Showing
4 changed files
with
196 additions
and
0 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,9 @@ | ||
# Credit by https://github.com/Madis0/sodium-fabric-translations | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Language requests and discussion | ||
url: https://crowdin.com/project/flashback-fabric/discussions | ||
about: Adding a new language, discussing overall aspects of languages | ||
- name: Translation issues | ||
url: https://support.crowdin.com/online-editor/#reporting-issues | ||
about: Wrong translation, context question and other comments about specific strings |
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 @@ | ||
<!-- Have an existing language file? | ||
Please upload it directly to Crowdin: https://support.crowdin.com/uploading-translations/#uploading-translations-via-language-page | ||
--> |
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,79 @@ | ||
# Credit by https://github.com/Madis0/sodium-fabric-translations | ||
name: 'Manual Build and Publish' | ||
on: [workflow_dispatch] | ||
permissions: | ||
contents: write | ||
jobs: | ||
version: | ||
name: Bump Version | ||
runs-on: ubuntu-latest | ||
outputs: | ||
tag: '${{ steps.bump.outputs.new_tag }}' | ||
changelog: '${{ steps.bump.outputs.changelog }}' | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Get Latest Commit SHA | ||
id: commit_sha | ||
run: | | ||
git fetch --depth=1 origin +refs/heads/${GITHUB_REF#refs/heads/}:refs/remotes/origin/${GITHUB_REF#refs/heads/} | ||
echo "sha=$(git rev-parse origin/${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT | ||
- name: Bump version and push tag | ||
id: bump | ||
uses: mathieudutour/github-tag-action@v6.1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
commit_sha: ${{ steps.commit_sha.outputs.sha }} | ||
default_bump: minor | ||
tag_prefix: v | ||
publish: | ||
name: Build Resource Pack | ||
runs-on: ubuntu-latest | ||
needs: | ||
- version | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: '${{ needs.version.outputs.tag }}' | ||
- name: Create Resource Pack File | ||
run: (cd Flashback\ Translations && zip -r "../FlashbackTranslations.zip" *) | ||
- name: Generate Checksum | ||
run: >- | ||
sha1sum "FlashbackTranslations.zip" | cut -d " " -f 1 > | ||
"FlashbackTranslations.zip.sha1" | ||
- name: Store Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Resource Pack | ||
path: FlashbackTranslations.zip* | ||
- name: Release on GitHub | ||
id: release-step | ||
uses: softprops/action-gh-release@v0.1.15 | ||
with: | ||
tag_name: '${{ needs.version.outputs.tag }}' | ||
generate_release_notes: true | ||
files: FlashbackTranslations.zip* | ||
- name: Fetch Latest Minecraft Release | ||
id: fetch-mc-release | ||
run: | | ||
curl -o minecraft.json https://piston-meta.mojang.com/mc/game/version_manifest_v2.json && echo "minecraftVersion=$(cat minecraft.json)" >> $GITHUB_OUTPUT | ||
- name: Release on GitHub and Modrinth | ||
uses: Kir-Antipov/mc-publish@v3.3 | ||
with: | ||
modrinth-id: gijmJRn4 | ||
modrinth-token: '${{ secrets.MODRINTH_TOKEN }}' | ||
|
||
name: 'Flashback Translations ${{ needs.version.outputs.tag }}' | ||
version: '${{ needs.version.outputs.tag }}' | ||
version-type: release | ||
changelog: '${{ needs.version.outputs.changelog }}' | ||
|
||
loaders: minecraft | ||
game-versions: | | ||
>=1.20 <=${{ fromJson(steps.fetch-mc-release.outputs.minecraftVersion).latest.release }} | ||
game-version-filter: releases | ||
files: | | ||
FlashbackTranslations.zip | ||
dependencies: | | ||
Flashback(required){modrinth:4das1Fjq}#(ignore:github) |
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,105 @@ | ||
# Credit by https://github.com/Madis0/sodium-fabric-translations | ||
name: 'Merge, Build and Publish' | ||
on: | ||
schedule: | ||
- cron: 0 0 * * 6 | ||
permissions: | ||
contents: write | ||
jobs: | ||
merge: | ||
name: Merge the PR | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Find Pull Request | ||
uses: juliangruber/find-pull-request-action@v1 | ||
id: find-pull-request | ||
with: | ||
branch: l10n_main | ||
- name: Merge Pull Request | ||
if: steps.find-pull-request.outputs.number != '' | ||
uses: juliangruber/merge-pull-request-action@v1 | ||
with: | ||
github-token: '${{ secrets.GITHUB_TOKEN }}' | ||
number: '${{ steps.find-pull-request.outputs.number }}' | ||
method: squash | ||
repo: '${{ github.repository }}' | ||
- name: Fail Job If Zero Pull Request | ||
if: steps.find-pull-request.outputs.number == '' | ||
run: exit 1 | ||
version: | ||
name: Bump Version | ||
runs-on: ubuntu-latest | ||
needs: | ||
- merge | ||
outputs: | ||
tag: '${{ steps.bump.outputs.new_tag }}' | ||
changelog: '${{ steps.bump.outputs.changelog }}' | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Get Latest Commit SHA | ||
id: commit_sha | ||
run: | | ||
git fetch --depth=1 origin +refs/heads/${GITHUB_REF#refs/heads/}:refs/remotes/origin/${GITHUB_REF#refs/heads/} | ||
echo "sha=$(git rev-parse origin/${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT | ||
- name: Bump version and push tag | ||
id: bump | ||
uses: mathieudutour/github-tag-action@v6.1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
commit_sha: ${{ steps.commit_sha.outputs.sha }} | ||
default_bump: minor | ||
tag_prefix: v | ||
publish: | ||
name: Build Resource Pack | ||
runs-on: ubuntu-latest | ||
needs: | ||
- version | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: '${{ needs.version.outputs.tag }}' | ||
- name: Create Resource Pack File | ||
run: (cd Flashback\ Translations && zip -r "../FlashbackTranslations.zip" *) | ||
- name: Generate Checksum | ||
run: >- | ||
sha1sum "FlashbackTranslations.zip" | cut -d " " -f 1 > | ||
"FlashbackTranslations.zip.sha1" | ||
- name: Store Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Resource Pack | ||
path: FlashbackTranslations.zip* | ||
- name: Release on GitHub | ||
id: release-step | ||
uses: softprops/action-gh-release@v0.1.15 | ||
with: | ||
tag_name: '${{ needs.version.outputs.tag }}' | ||
generate_release_notes: true | ||
files: FlashbackTranslations.zip* | ||
- name: Fetch Latest Minecraft Release | ||
id: fetch-mc-release | ||
run: | | ||
curl -o minecraft.json https://piston-meta.mojang.com/mc/game/version_manifest_v2.json && echo "minecraftVersion=$(cat minecraft.json)" >> $GITHUB_OUTPUT | ||
- name: Release on GitHub and Modrinth | ||
uses: Kir-Antipov/mc-publish@v3.3 | ||
with: | ||
modrinth-id: gijmJRn4 | ||
modrinth-token: '${{ secrets.MODRINTH_TOKEN }}' | ||
|
||
name: 'Flashback Translations ${{ needs.version.outputs.tag }}' | ||
version: '${{ needs.version.outputs.tag }}' | ||
version-type: release | ||
changelog: '${{ needs.version.outputs.changelog }}' | ||
|
||
loaders: minecraft | ||
game-versions: | | ||
>=1.20 <=${{ fromJson(steps.fetch-mc-release.outputs.minecraftVersion).latest.release }} | ||
game-version-filter: releases | ||
files: | | ||
FlashbackTranslations.zip | ||
dependencies: | | ||
Flashback(required){modrinth:4das1Fjq}#(ignore:github) |