Simplify workflows

pull/1040/head
Tyrrrz 2 years ago
parent 2b7f1ed4ed
commit e052241713

@ -67,10 +67,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Get release version
id: get-version
uses: tyrrrz/action-get-tag@v1
- name: Install Docker Buildx
uses: docker/setup-buildx-action@v2
@ -86,5 +82,5 @@ jobs:
--platform linux/amd64,linux/arm64
--push
--tag tyrrrz/discordchatexporter:stable
--tag tyrrrz/discordchatexporter:${{ steps.get-version.outputs.tag }}
--tag tyrrrz/discordchatexporter:${{ github.ref_name }}
.

@ -123,15 +123,13 @@ jobs:
-Force
- name: Create release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
DiscordChatExporter.Cli.zip
DiscordChatExporter.zip
body: |
[Changelog](https://github.com/Tyrrrz/DiscordChatExporter/blob/master/Changelog.md)
run: >
gh release create ${{ github.ref_name }} DiscordChatExporter.Cli.zip DiscordChatExporter.zip
--title ${{ github.ref_name }}
--notes "[Changelog](https://github.com/Tyrrrz/DiscordChatExporter/blob/master/Changelog.md)"
--verify-tag
notify:
needs: deploy
@ -140,10 +138,6 @@ jobs:
contents: read
steps:
- name: Get release version
id: get-version
uses: tyrrrz/action-get-tag@v1
- name: Notify Discord
uses: tyrrrz/action-http-request@v1
with:
@ -153,5 +147,5 @@ jobs:
Content-Type: application/json; charset=UTF-8
body: |
{
"content": "**DiscordChatExporter** new version released!\nVersion: `${{ steps.get-version.outputs.tag }}`\nChangelog: <https://github.com/Tyrrrz/DiscordChatExporter/blob/${{ steps.get-version.outputs.tag }}/Changelog.md>"
"content": "**DiscordChatExporter** new version released!\nVersion: `${{ github.ref_name }}`\nChangelog: <https://github.com/Tyrrrz/DiscordChatExporter/blob/${{ github.ref_name }}/Changelog.md>"
}
Loading…
Cancel
Save