Skip to content

Commit

Permalink
git: Added automatic release and source tar upload on release (WerWol…
Browse files Browse the repository at this point in the history
…v#537)

* added release.yml

* Build CI now only triggers on branch push
  • Loading branch information
iTrooz authored Jun 19, 2022
1 parent c238767 commit e33726f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Build

on:
push:
branches: ["*"]
pull_request:

env:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
permissions:
contents: write

name: Release

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Get sources
uses: actions/checkout@v3
with:
path: ImHex
submodules: recursive

- name: Create tarball from sources with dependencies
run: tar -cvf Full.Sources.tar.gz ImHex

- name: Download artifacts from latest workflow
uses: dawidd6/action-download-artifact@v2
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: build.yml
workflow_conclusion: success
skip_unpack: true

- name: Upload everything to release
uses: softprops/action-gh-release@v1
with:
files: |
*.zip
*.tar.gz

0 comments on commit e33726f

Please sign in to comment.