From 77d67780b48259f686598d9f448db80e2de4ff62 Mon Sep 17 00:00:00 2001 From: Xikaro <0regon.end@gmail.com> Date: Wed, 3 Jan 2024 09:13:56 +0500 Subject: [PATCH] workflows --- .github/workflows/release.yml | 26 ++++++++++++++++++++++---- CHANGELOG.md | 2 +- 2 files changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c534b2165..e2ddfab5f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,12 @@ -name: Deploy modpack +name: Release +run-name: "Release #${{ github.run_number }}" on: push: tags: - "*.*.*" + branches: + - main jobs: Deploy: @@ -16,6 +19,12 @@ jobs: id: get_version 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 run: | DEV=${{ steps.get_version.outputs.version }} @@ -34,7 +43,7 @@ jobs: run: | git submodule init 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 - name: Archive CF @@ -61,7 +70,8 @@ jobs: zip -r ../TerraFirmaGreg-1.20.x-${{ steps.get_version.outputs.version }}-server.zip ./ - name: Upload Curseforge - uses: henkelmax/upload-curseforge-modpack-action@v1.0.0 + id: cf_release + uses: SwitchAlpha/upload-curseforge-modpack-action@master with: api-token: ${{ secrets.CF_API_TOKEN }} project-id: "385053" @@ -92,10 +102,18 @@ jobs: with: webhook-url: ${{ secrets.RELEASES_1_20 }} 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]()" embed-title: Release ${{ steps.changelog.outputs.version }} embed-description: "${{ steps.changelog.outputs.description }}" embed-url: https://github.com/TerraFirmaGreg-Team/TFG-Modpack-1.20.x/tree/main/CHANGELOG.md embed-color: 5814783 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 }} + diff --git a/CHANGELOG.md b/CHANGELOG.md index 257ceee49..e9f0fc66f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [0.4] - Ожидается 03.01.2024 +## [0.4.0] - 03.01.2024 ### Изменения - Удалены из игры бронзовые паровые машины, тк позволяли скипнуть очень много прогресии TFC. - Добавлено очень много квестов для Примитивной эры (пока что без описаний).