forked from WerWolv/ImHex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git: Added automatic release and source tar upload on release (WerWol…
…v#537) * added release.yml * Build CI now only triggers on branch push
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ name: Build | |
|
||
on: | ||
push: | ||
branches: ["*"] | ||
pull_request: | ||
|
||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |