mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 19:26:00 +01:00
ci: upload source
This commit is contained in:
parent
bf762f566f
commit
0cfc97972f
1 changed files with 36 additions and 0 deletions
36
.github/workflows/release.yaml
vendored
Normal file
36
.github/workflows/release.yaml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
on:
|
||||
release:
|
||||
types: [published]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
source-tarball:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Hyprland
|
||||
id: checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Create tarball with submodules
|
||||
id: tar
|
||||
run: tar -czv --owner=0 --group=0 --no-same-owner --no-same-permissions -f source.tar.gz *
|
||||
|
||||
- id: whatrelease
|
||||
name: Get latest release
|
||||
uses: pozetroninc/github-action-get-latest-release@master
|
||||
with:
|
||||
owner: viperML
|
||||
repo: Hyprland
|
||||
excludes: prerelease, draft
|
||||
|
||||
- name: Upload to release
|
||||
id: upload
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: source.tar.gz
|
||||
asset_name: hyprland-source-${{ steps.whatrelease.outputs.release }}.tar.gz
|
||||
tag: ${{ steps.whatrelease.outputs.release }}
|
||||
overwrite: false
|
Loading…
Reference in a new issue