mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-28 05:34:12 -04:00
Simplify workflows
This commit is contained in:
parent
2b7f1ed4ed
commit
e052241713
2 changed files with 7 additions and 17 deletions
6
.github/workflows/docker.yml
vendored
6
.github/workflows/docker.yml
vendored
|
@ -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 }}
|
||||
.
|
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
|
@ -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…
Add table
Add a link
Reference in a new issue