01adc8a2cd
* removed restore-keys * updated cache for Ubuntu 22 * using ccache on OBJC and OBJCXX * Bonus: fix release workflow
39 lines
849 B
YAML
39 lines
849 B
YAML
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
|
|
branch: master
|
|
workflow_conclusion: success
|
|
skip_unpack: true
|
|
|
|
- name: Upload everything to release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: |
|
|
*.zip
|
|
*.tar.gz
|