mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-14 15:53:30 -07:00
Workflow improvements
This commit is contained in:
parent
ebf7d65334
commit
eaab5786f2
5
.github/workflows/docker.yml
vendored
5
.github/workflows/docker.yml
vendored
|
|
@ -1,6 +1,8 @@
|
||||||
name: docker
|
name: docker
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Outputs from this job aren't really used, but it's here to verify that
|
# Outputs from this job aren't really used, but it's here to verify that
|
||||||
|
|
@ -31,6 +33,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: DiscordChatExporter.Cli.Docker
|
name: DiscordChatExporter.Cli.Docker
|
||||||
path: DiscordChatExporter.Cli.Docker.tar
|
path: DiscordChatExporter.Cli.Docker.tar
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
# Deploy to DockerHub only on tag push or master branch push
|
# Deploy to DockerHub only on tag push or master branch push
|
||||||
|
|
|
||||||
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
|
|
@ -1,6 +1,8 @@
|
||||||
name: main
|
name: main
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
||||||
|
|
@ -73,6 +75,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.app }}
|
name: ${{ matrix.app }}
|
||||||
path: ${{ matrix.app }}/bin/publish/
|
path: ${{ matrix.app }}/bin/publish/
|
||||||
|
if-no-files-found: error
|
||||||
|
|
||||||
release:
|
release:
|
||||||
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
|
if: ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
|
||||||
|
|
@ -90,9 +93,9 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: >
|
run: >
|
||||||
gh release create "${{ github.ref_name }}"
|
gh release create ${{ github.ref_name }}
|
||||||
--repo "${{ github.event.repository.full_name }}"
|
--repo ${{ github.event.repository.full_name }}
|
||||||
--title "${{ github.ref_name }}"
|
--title ${{ github.ref_name }}
|
||||||
--notes "[Changelog](${{ github.event.repository.html_url }}/blob/${{ github.ref_name }}/Changelog.md)"
|
--notes "[Changelog](${{ github.event.repository.html_url }}/blob/${{ github.ref_name }}/Changelog.md)"
|
||||||
--verify-tag
|
--verify-tag
|
||||||
|
|
||||||
|
|
@ -131,9 +134,9 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: >
|
run: >
|
||||||
gh release upload "${{ github.ref_name }}"
|
gh release upload ${{ github.ref_name }}
|
||||||
"${{ matrix.asset }}.zip"
|
${{ matrix.asset }}.zip
|
||||||
--repo "${{ github.event.repository.full_name }}"
|
--repo ${{ github.event.repository.full_name }}
|
||||||
|
|
||||||
notify:
|
notify:
|
||||||
needs: deploy
|
needs: deploy
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue