Skip to content

Commit

Permalink
Merge pull request #10 from dunkmann00/release-action
Browse files Browse the repository at this point in the history
Fix uploading of release assets
  • Loading branch information
dunkmann00 authored Oct 3, 2024
2 parents f2df1e2 + 6f41a3f commit 9db2fb1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ on:
release:
types: [published]

workflow_dispatch:
inputs:
pypi:
description: 'Publish to PyPI'
required: true
default: false
type: boolean

jobs:
build:
uses: ./.github/workflows/build.yml
Expand All @@ -13,6 +21,7 @@ jobs:
name: Publish on PyPI
needs: build
runs-on: ubuntu-22.04
if: ${{ github.event_name != 'workflow_dispatch' || inputs.pypi }}
environment:
name: pypi
url: https://pypi.org/p/drive-backup
Expand All @@ -39,9 +48,10 @@ jobs:
uses: actions/download-artifact@v4
with:
path: dist
pattern: "!(*Notifications*)"
merge-multiple: true
- name: Upload release assets
id: upload-assets
uses: softprops/action-gh-release@v2
with:
files: "!(*Notifications*)"
files: dist/*

0 comments on commit 9db2fb1

Please sign in to comment.