@ -10,6 +10,8 @@ jobs:
# the Dockerfile builds correctly on pull requests.
pack:
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
actions: write
contents: read
@ -38,7 +40,10 @@ jobs:
deploy:
# Deploy to DockerHub only on tag push or master branch push
if: ${{ github.ref_type == 'tag' || github.ref_type == 'branch' && github.ref_name == 'master' }}
@ -13,6 +13,8 @@ env:
jobs:
format:
runs-on: windows-latest
@ -34,7 +36,10 @@ jobs:
test:
# Tests need access to secrets, so we can't run them against PRs because of limited trust
if: ${{ github.event_name != 'pull_request' }}
@ -73,6 +78,8 @@ jobs:
- DiscordChatExporter.Gui
@ -110,6 +117,8 @@ jobs:
- pack
contents: write
@ -140,6 +149,8 @@ jobs:
asset: DiscordChatExporter
actions: read
@ -167,6 +178,8 @@ jobs:
notify:
needs: deploy