From 0cfc97972f91c58d08b75c995454e6d907f2b859 Mon Sep 17 00:00:00 2001 From: Fernando Ayats Date: Wed, 13 Jul 2022 10:25:21 +0200 Subject: ci: upload source --- .github/workflows/release.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/release.yaml (limited to '.github/workflows/release.yaml') diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..363c31f2 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 -- cgit v1.2.3 From 9580ef4bc246fd9a25a626c31a62cb0153d2bb34 Mon Sep 17 00:00:00 2001 From: Fernando Ayats Date: Wed, 13 Jul 2022 10:35:23 +0200 Subject: ci: upload source --- .github/workflows/release.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.github/workflows/release.yaml') diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 363c31f2..d8275f64 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,3 +1,5 @@ +name: Release artifacts + on: release: types: [published] @@ -31,6 +33,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} file: source.tar.gz - asset_name: hyprland-source-${{ steps.whatrelease.outputs.release }}.tar.gz + asset_name: source-${{ steps.whatrelease.outputs.release }}.tar.gz tag: ${{ steps.whatrelease.outputs.release }} - overwrite: false + overwrite: true -- cgit v1.2.3 From d7d5b1a4eb14b6986a1e74c96ee443f1c56c1fd4 Mon Sep 17 00:00:00 2001 From: Fernando Ayats Date: Wed, 13 Jul 2022 10:39:57 +0200 Subject: ci: fix repo source --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/release.yaml') diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d8275f64..cb32972f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -23,7 +23,7 @@ jobs: name: Get latest release uses: pozetroninc/github-action-get-latest-release@master with: - owner: viperML + owner: hyprwm repo: Hyprland excludes: prerelease, draft -- cgit v1.2.3