Simplify workflows

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

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

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