|
|
|
@ -92,41 +92,19 @@ jobs:
|
|
|
|
|
shell: pwsh
|
|
|
|
|
|
|
|
|
|
- name: Create package (GUI)
|
|
|
|
|
run: Compress-Archive -Path DiscordChatExporter.Gui/* -DestinationPath DiscordChatExporter.Gui.zip -Force
|
|
|
|
|
run: Compress-Archive -Path DiscordChatExporter.Gui/* -DestinationPath DiscordChatExporter.zip -Force
|
|
|
|
|
shell: pwsh
|
|
|
|
|
|
|
|
|
|
- name: Create release
|
|
|
|
|
id: create_release
|
|
|
|
|
uses: actions/create-release@v1
|
|
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
|
|
env:
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
with:
|
|
|
|
|
tag_name: ${{ github.ref }}
|
|
|
|
|
release_name: ${{ github.ref }}
|
|
|
|
|
files: |
|
|
|
|
|
DiscordChatExporter.Cli.zip
|
|
|
|
|
DiscordChatExporter.zip
|
|
|
|
|
body: |
|
|
|
|
|
[Changelog](https://github.com/Tyrrrz/DiscordChatExporter/blob/master/Changelog.md)
|
|
|
|
|
draft: false
|
|
|
|
|
prerelease: false
|
|
|
|
|
|
|
|
|
|
- name: Upload release asset (CLI)
|
|
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|
|
env:
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
with:
|
|
|
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
|
|
|
asset_name: DiscordChatExporter.Cli.zip
|
|
|
|
|
asset_path: DiscordChatExporter.Cli.zip
|
|
|
|
|
asset_content_type: application/zip
|
|
|
|
|
|
|
|
|
|
- name: Upload release asset (GUI)
|
|
|
|
|
uses: actions/upload-release-asset@v1
|
|
|
|
|
env:
|
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
with:
|
|
|
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
|
|
|
asset_name: DiscordChatExporter.zip
|
|
|
|
|
asset_path: DiscordChatExporter.Gui.zip
|
|
|
|
|
asset_content_type: application/zip
|
|
|
|
|
|
|
|
|
|
notify:
|
|
|
|
|
needs: deploy
|
|
|
|
|