Skip to content

Commit

Permalink
update release workflow change
Browse files Browse the repository at this point in the history
  • Loading branch information
arturas-bes committed Nov 8, 2021
1 parent 2baf5e3 commit dd07d90
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: release
on:
release:
types: [ published]

types: [ published, edited, updated, drafted]
jobs:
build_release:
name: build_release
Expand All @@ -27,8 +26,17 @@ jobs:
find . -maxdepth 1 -type f -exec rm "{}" \;
cd dpdbaltics && rm -rf dpdbaltics
cd ../ && zip -r dpdbaltics.zip dpdbaltics/
- name: Update Release
uses: johnwbyrd/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: ./dpdbaltics.zip
- name: Update release
id: update_release
uses: tubone24/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
with:
upload_url: ${{ steps.update_release.outputs.upload_url }}
asset_path: ./dpdbaltics.zip
asset_name: dpdbaltics.zip
asset_content_type: application/zip

0 comments on commit dd07d90

Please sign in to comment.