mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-08 02:14:42 -04:00
Prettify workflow files
This commit is contained in:
parent
b8b1fdb1d1
commit
9428d5ed56
2 changed files with 32 additions and 8 deletions
8
.github/workflows/docker.yml
vendored
8
.github/workflows/docker.yml
vendored
|
@ -15,7 +15,9 @@ jobs:
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }}
|
run: >
|
||||||
|
echo ${{ secrets.DOCKER_TOKEN }} |
|
||||||
|
docker login -u tyrrrz --password-stdin
|
||||||
|
|
||||||
- name: Build & push image
|
- name: Build & push image
|
||||||
run: >
|
run: >
|
||||||
|
@ -42,7 +44,9 @@ jobs:
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
run: docker login -u tyrrrz -p ${{ secrets.DOCKER_TOKEN }}
|
run: >
|
||||||
|
echo ${{ secrets.DOCKER_TOKEN }} |
|
||||||
|
docker login -u tyrrrz --password-stdin
|
||||||
|
|
||||||
- name: Build & push image
|
- name: Build & push image
|
||||||
run: >
|
run: >
|
||||||
|
|
30
.github/workflows/main.yml
vendored
30
.github/workflows/main.yml
vendored
|
@ -23,7 +23,13 @@ jobs:
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
# Tests need access to secrets, so we can't run them against PRs because of limited trust
|
# Tests need access to secrets, so we can't run them against PRs because of limited trust
|
||||||
if: ${{ github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request' }}
|
||||||
run: dotnet test --configuration Release --logger GitHubActions --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
|
run: >
|
||||||
|
dotnet test
|
||||||
|
--configuration Release
|
||||||
|
--logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
|
||||||
|
--collect:"XPlat Code Coverage"
|
||||||
|
--
|
||||||
|
DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
|
||||||
env:
|
env:
|
||||||
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|
||||||
|
|
||||||
|
@ -51,10 +57,16 @@ jobs:
|
||||||
dotnet-version: 7.0.x
|
dotnet-version: 7.0.x
|
||||||
|
|
||||||
- name: Publish (CLI)
|
- name: Publish (CLI)
|
||||||
run: dotnet publish DiscordChatExporter.Cli/ -o DiscordChatExporter.Cli/bin/Publish/ --configuration Release
|
run: >
|
||||||
|
dotnet publish DiscordChatExporter.Cli
|
||||||
|
--output DiscordChatExporter.Cli/bin/Publish/
|
||||||
|
--configuration Release
|
||||||
|
|
||||||
- name: Publish (GUI)
|
- name: Publish (GUI)
|
||||||
run: dotnet publish DiscordChatExporter.Gui/ -o DiscordChatExporter.Gui/bin/Publish/ --configuration Release
|
run: >
|
||||||
|
dotnet publish DiscordChatExporter.Gui
|
||||||
|
--output DiscordChatExporter.Gui/bin/Publish/
|
||||||
|
--configuration Release
|
||||||
|
|
||||||
- name: Upload artifacts (CLI)
|
- name: Upload artifacts (CLI)
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
@ -87,12 +99,20 @@ jobs:
|
||||||
path: DiscordChatExporter.Gui
|
path: DiscordChatExporter.Gui
|
||||||
|
|
||||||
- name: Create package (CLI)
|
- name: Create package (CLI)
|
||||||
run: Compress-Archive -Path DiscordChatExporter.Cli/* -DestinationPath DiscordChatExporter.Cli.zip -Force
|
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
run: >
|
||||||
|
Compress-Archive
|
||||||
|
-Path DiscordChatExporter.Cli/*
|
||||||
|
-DestinationPath DiscordChatExporter.Cli.zip
|
||||||
|
-Force
|
||||||
|
|
||||||
- name: Create package (GUI)
|
- name: Create package (GUI)
|
||||||
run: Compress-Archive -Path DiscordChatExporter.Gui/* -DestinationPath DiscordChatExporter.zip -Force
|
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
run: >
|
||||||
|
Compress-Archive
|
||||||
|
-Path DiscordChatExporter.Gui/*
|
||||||
|
-DestinationPath DiscordChatExporter.zip
|
||||||
|
-Force
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue