2022-07-13 10:35:23 +02:00
|
|
|
name: Release artifacts
|
|
|
|
|
2022-07-13 10:25:21 +02:00
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
source-tarball:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Hyprland
|
|
|
|
id: checkout
|
2024-11-06 18:50:01 +01:00
|
|
|
uses: actions/checkout@v4
|
2022-07-13 10:25:21 +02:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
2023-10-10 21:53:23 +02:00
|
|
|
- name: Generate version
|
|
|
|
id: genversion
|
|
|
|
run: |
|
2024-04-15 03:05:45 +02:00
|
|
|
git fetch --unshallow || echo "failed unshallowing"
|
2023-10-10 21:53:23 +02:00
|
|
|
bash -c scripts/generateVersion.sh
|
|
|
|
|
2022-07-13 10:25:21 +02:00
|
|
|
- name: Create tarball with submodules
|
|
|
|
id: tar
|
2023-04-27 15:28:40 +02:00
|
|
|
run: |
|
|
|
|
mkdir hyprland-source; mv ./* ./hyprland-source || tar -czv --owner=0 --group=0 --no-same-owner --no-same-permissions -f source.tar.gz *
|
2022-07-13 10:25:21 +02:00
|
|
|
|
|
|
|
- id: whatrelease
|
|
|
|
name: Get latest release
|
|
|
|
uses: pozetroninc/github-action-get-latest-release@master
|
|
|
|
with:
|
2022-07-13 10:39:57 +02:00
|
|
|
owner: hyprwm
|
2022-07-13 10:25:21 +02:00
|
|
|
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
|
2022-07-13 10:35:23 +02:00
|
|
|
asset_name: source-${{ steps.whatrelease.outputs.release }}.tar.gz
|
2022-07-13 10:25:21 +02:00
|
|
|
tag: ${{ steps.whatrelease.outputs.release }}
|
2022-07-13 10:35:23 +02:00
|
|
|
overwrite: true
|