workflows
This commit is contained in:
parent
957aaed6b1
commit
6d5a1c6eee
3 changed files with 150 additions and 290 deletions
39
.github/workflows/release.yml
vendored
39
.github/workflows/release.yml
vendored
|
|
@ -21,8 +21,7 @@ jobs:
|
|||
project_name: ${{ steps.info.outputs.project_name }}
|
||||
project_version: ${{ steps.info.outputs.project_version }}
|
||||
mc_version: ${{ steps.info.outputs.mc_version }}
|
||||
changelog_ru: ${{ steps.changelog_ru.outputs.description }}
|
||||
changelog_en: ${{ steps.changelog_en.outputs.description }}
|
||||
changelog: ${{ steps.changelog.outputs.description }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
@ -61,13 +60,7 @@ jobs:
|
|||
id: changelog_ru
|
||||
uses: coditory/changelog-parser@v1.0.2
|
||||
with:
|
||||
path: CHANGELOG_RU.md
|
||||
|
||||
- name: Changelog Parser
|
||||
id: changelog_en
|
||||
uses: coditory/changelog-parser@v1.0.2
|
||||
with:
|
||||
path: CHANGELOG_EN.md
|
||||
path: CHANGELOG.md
|
||||
|
||||
build-cf-modpack:
|
||||
name: Build CF Modpack
|
||||
|
|
@ -160,6 +153,13 @@ jobs:
|
|||
echo "password=${{ secrets.USER_TOKEN_XIKARO }}"; }; f'
|
||||
git submodule update --recursive
|
||||
|
||||
- name: Replace strings
|
||||
shell: bash
|
||||
run: |
|
||||
VERSION=${{ needs.modpack-info.outputs.project_version }}
|
||||
sed -i -e "s/DEV/${VERSION}/g" .github/buildtools/modpack/manifest.json
|
||||
sed -i -e "s/DEV/${VERSION}/g" config/fancymenu/customization/gui_main_menu.txt
|
||||
|
||||
- name: Export serverpack
|
||||
run: |
|
||||
mkdir -p .minecraft
|
||||
|
|
@ -206,12 +206,7 @@ jobs:
|
|||
project-id: ${{ vars.CF_MODPACK_ID }}
|
||||
modpack-path: ${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}-cf.zip
|
||||
modpack-server-path: ${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}-server.zip
|
||||
changelog: |
|
||||
RU
|
||||
${{ needs.modpack-info.outputs.changelog_ru }}
|
||||
|
||||
EN
|
||||
${{ needs.modpack-info.outputs.changelog_en }}
|
||||
changelog: ${{ needs.modpack-info.outputs.changelog }}
|
||||
changelog-format: markdown
|
||||
game-version: ${{ needs.modpack-info.outputs.mc_version }}
|
||||
display-name: ${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}
|
||||
|
|
@ -272,12 +267,7 @@ jobs:
|
|||
prerelease: false
|
||||
generate_release_notes: true
|
||||
name: ${{ needs.modpack-info.outputs.project_version }}
|
||||
body: |
|
||||
RU
|
||||
${{ needs.modpack-info.outputs.changelog_ru }}
|
||||
|
||||
EN
|
||||
${{ needs.modpack-info.outputs.changelog_en }}
|
||||
body: ${{ needs.modpack-info.outputs.changelog }}
|
||||
files: |
|
||||
${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}-cf.zip
|
||||
${{ needs.modpack-info.outputs.project_name }}-${{ needs.modpack-info.outputs.project_version }}-mmc.zip
|
||||
|
|
@ -305,10 +295,9 @@ jobs:
|
|||
**GameVersion**: `${{ needs.modpack-info.outputs.mc_version }}`
|
||||
**Website Link**: [CurseForge](https://www.curseforge.com/minecraft/modpacks/terrafirmagreg/files/${{ needs.release-curseforge.outputs.cf_release_id }})
|
||||
|
||||
:flag_ru: ** [Сhangelog](https://github.com/TerraFirmaGreg-Team/Modpack-1.20.x/blob/main/CHANGELOG_RU.md) **
|
||||
```${{ needs.modpack-info.outputs.changelog_ru }}```
|
||||
:flag_gb: ** [Сhangelog](https://github.com/TerraFirmaGreg-Team/Modpack-1.20.x/blob/main/CHANGELOG_EN.md) **
|
||||
```${{ needs.modpack-info.outputs.changelog_en }}```
|
||||
** Сhangelog **
|
||||
```${{ needs.modpack-info.outputs.changelog }}```
|
||||
** [More details...](https://github.com/TerraFirmaGreg-Team/Modpack-1.20.x/blob/main/CHANGELOG.md) **
|
||||
embed-color: 5814783
|
||||
|
||||
# close-fixed-issues:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue