workflows
This commit is contained in:
parent
876e56c736
commit
77d67780b4
2 changed files with 23 additions and 5 deletions
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
|
|
@ -1,9 +1,12 @@
|
||||||
name: Deploy modpack
|
name: Release
|
||||||
|
run-name: "Release #${{ github.run_number }}"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "*.*.*"
|
- "*.*.*"
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Deploy:
|
Deploy:
|
||||||
|
|
@ -16,6 +19,12 @@ jobs:
|
||||||
id: get_version
|
id: get_version
|
||||||
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/}
|
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/}
|
||||||
|
|
||||||
|
- name: Get tag
|
||||||
|
id: get_tag
|
||||||
|
uses: "WyriHaximus/github-action-get-previous-tag@v1.3.0"
|
||||||
|
with:
|
||||||
|
fallback: tag_not_found
|
||||||
|
|
||||||
- name: Set the version
|
- name: Set the version
|
||||||
run: |
|
run: |
|
||||||
DEV=${{ steps.get_version.outputs.version }}
|
DEV=${{ steps.get_version.outputs.version }}
|
||||||
|
|
@ -34,7 +43,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git submodule init
|
git submodule init
|
||||||
cd mods
|
cd mods
|
||||||
git config --global credential.helper '!f() { echo "username=Xikaro"; echo "password=${{ secrets.USER_TOKEN_XIKARO }}"; }; f'
|
git config --local ${{ secrets.GITHUB_TOKEN }}
|
||||||
git submodule update --recursive
|
git submodule update --recursive
|
||||||
|
|
||||||
- name: Archive CF
|
- name: Archive CF
|
||||||
|
|
@ -61,7 +70,8 @@ jobs:
|
||||||
zip -r ../TerraFirmaGreg-1.20.x-${{ steps.get_version.outputs.version }}-server.zip ./
|
zip -r ../TerraFirmaGreg-1.20.x-${{ steps.get_version.outputs.version }}-server.zip ./
|
||||||
|
|
||||||
- name: Upload Curseforge
|
- name: Upload Curseforge
|
||||||
uses: henkelmax/upload-curseforge-modpack-action@v1.0.0
|
id: cf_release
|
||||||
|
uses: SwitchAlpha/upload-curseforge-modpack-action@master
|
||||||
with:
|
with:
|
||||||
api-token: ${{ secrets.CF_API_TOKEN }}
|
api-token: ${{ secrets.CF_API_TOKEN }}
|
||||||
project-id: "385053"
|
project-id: "385053"
|
||||||
|
|
@ -92,10 +102,18 @@ jobs:
|
||||||
with:
|
with:
|
||||||
webhook-url: ${{ secrets.RELEASES_1_20 }}
|
webhook-url: ${{ secrets.RELEASES_1_20 }}
|
||||||
username: "GitHub"
|
username: "GitHub"
|
||||||
avatar-url: https://github.com/TerraFirmaGreg-Team/.github/blob/main/branding/logo_new_year.png
|
avatar-url: https://github.com/TerraFirmaGreg-Team/.github/tree/main/branding/logo_new_year.png?raw=true
|
||||||
|
content: "[CurseForge](<https://legacy.curseforge.com/minecraft/modpacks/terrafirmagreg/files/${{ steps.cf_release.outputs.id }}>)"
|
||||||
embed-title: Release ${{ steps.changelog.outputs.version }}
|
embed-title: Release ${{ steps.changelog.outputs.version }}
|
||||||
embed-description: "${{ steps.changelog.outputs.description }}"
|
embed-description: "${{ steps.changelog.outputs.description }}"
|
||||||
embed-url: https://github.com/TerraFirmaGreg-Team/TFG-Modpack-1.20.x/tree/main/CHANGELOG.md
|
embed-url: https://github.com/TerraFirmaGreg-Team/TFG-Modpack-1.20.x/tree/main/CHANGELOG.md
|
||||||
embed-color: 5814783
|
embed-color: 5814783
|
||||||
embed-footer-text: ${{ steps.changelog.outputs.date }}
|
embed-footer-text: ${{ steps.changelog.outputs.date }}
|
||||||
|
|
||||||
|
- name: Close Fixed in dev
|
||||||
|
uses: juraj-hrivnak/close-issues-based-on-label@master
|
||||||
|
env:
|
||||||
|
LABEL: "2. status: fixed in dev"
|
||||||
|
VERSION: ${{ steps.get_tag.outputs.tag }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## [0.4] - Ожидается 03.01.2024
|
## [0.4.0] - 03.01.2024
|
||||||
### Изменения
|
### Изменения
|
||||||
- Удалены из игры бронзовые паровые машины, тк позволяли скипнуть очень много прогресии TFC.
|
- Удалены из игры бронзовые паровые машины, тк позволяли скипнуть очень много прогресии TFC.
|
||||||
- Добавлено очень много квестов для Примитивной эры (пока что без описаний).
|
- Добавлено очень много квестов для Примитивной эры (пока что без описаний).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue