Update release.yml
This commit is contained in:
parent
23f098d101
commit
42219eebca
1 changed files with 23 additions and 17 deletions
40
.github/workflows/release.yml
vendored
40
.github/workflows/release.yml
vendored
|
|
@ -77,30 +77,30 @@ jobs:
|
|||
with:
|
||||
name: ${{ inputs.project_name }}-${{ inputs.project_version }}-server
|
||||
|
||||
# - name: Upload Curseforge
|
||||
# id: cf_release
|
||||
# uses: SwitchAlpha/upload-curseforge-modpack-action@master
|
||||
# with:
|
||||
# api-token: ${{ secrets.CF_API_TOKEN }}
|
||||
# project-id: ${{ env.CF_PROJECT_ID }}
|
||||
# modpack-path: ${{ inputs.project_name }}-${{ inputs.project_version }}-cf.zip
|
||||
# modpack-server-path: ${{ inputs.project_name }}-${{ inputs.project_version }}-server.zip
|
||||
# changelog: "${{ inputs.changelog }}"
|
||||
# changelog-format: markdown
|
||||
# game-version: ${{ inputs.mcversion }}
|
||||
# display-name: ${{ inputs.project_name }}-${{ inputs.project_version }}
|
||||
# server-display-name: ${{ inputs.project_name }}-${{ inputs.project_version }}-server
|
||||
# release-type: ${{ env.RELEASE_TYPE }}
|
||||
- name: Upload Curseforge
|
||||
id: cf_release
|
||||
uses: SwitchAlpha/upload-curseforge-modpack-action@master
|
||||
with:
|
||||
api-token: ${{ secrets.CF_API_TOKEN }}
|
||||
project-id: ${{ env.CF_PROJECT_ID }}
|
||||
modpack-path: ${{ inputs.project_name }}-${{ inputs.project_version }}-cf.zip
|
||||
modpack-server-path: ${{ inputs.project_name }}-${{ inputs.project_version }}-server.zip
|
||||
changelog: "${{ inputs.changelog }}"
|
||||
changelog-format: markdown
|
||||
game-version: ${{ inputs.mcversion }}
|
||||
display-name: ${{ inputs.project_name }}-${{ inputs.project_version }}
|
||||
server-display-name: ${{ inputs.project_name }}-${{ inputs.project_version }}-server
|
||||
release-type: ${{ env.RELEASE_TYPE }}
|
||||
|
||||
- name: Create Discord message
|
||||
id: message
|
||||
shell: bash
|
||||
run: |
|
||||
header="## **${{ inputs.project_name }}** has been updated to ${{ inputs.project_version }}! :tada:"
|
||||
header="## **${{ inputs.project_name }}** был обновлен до ${{ inputs.project_version }}! :tada:"
|
||||
echo "header=$header" >> $GITHUB_OUTPUT
|
||||
|
||||
link+="[CurseForge](<https://www.curseforge.com/minecraft/modpacks/terrafirmagreg/files?page=1&pageSize=20&version=1.20.1>) • "
|
||||
link+="[GitHub](<https://github.com/TerraFirmaGreg-Team/TFG-Modpack-1.20.x/releases>) • "
|
||||
link+="[CurseForge](<https://www.curseforge.com/minecraft/modpacks/terrafirmagreg/files/${{ steps.cf_release.outputs.id }}>) • "
|
||||
link+="[GitHub](<https://github.com/TerraFirmaGreg-Team/TFG-Modpack-1.20.x/releases/tag/${{ inputs.tag }}>) • "
|
||||
link+="[Issues](<https://github.com/TerraFirmaGreg-Team/TFG-Modpack-1.20.x/issues>)"
|
||||
echo "link=$link" >> $GITHUB_OUTPUT
|
||||
|
||||
|
|
@ -110,6 +110,12 @@ jobs:
|
|||
key: "${{secrets.RELEASES_1_20}}"
|
||||
username: "TerraFirmaGreg"
|
||||
avatar_url: "https://raw.githubusercontent.com/TerraFirmaGreg-Team/.github/main/branding/logo_new_year.png"
|
||||
embeds: |
|
||||
[
|
||||
{
|
||||
"allowed_mentions_parse": "1167128822513143848"
|
||||
}
|
||||
]
|
||||
content: "${{ steps.message.outputs.header }}\n${{ steps.message.outputs.link }}\n${{ inputs.news }}"
|
||||
|
||||
# release-modrinth:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue