From 0cfc97972f91c58d08b75c995454e6d907f2b859 Mon Sep 17 00:00:00 2001 From: Fernando Ayats Date: Wed, 13 Jul 2022 10:25:21 +0200 Subject: [PATCH 1/5] ci: upload source --- .github/workflows/release.yaml | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .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 From 532ffe16811dea5a8f4c9730ec7e2bb0fd1b9395 Mon Sep 17 00:00:00 2001 From: Fernando Ayats Date: Wed, 13 Jul 2022 10:26:11 +0200 Subject: [PATCH 2/5] FIXME: temp disable workflows --- .github/{workflows => workflows-disabled}/ci.yaml | 0 .github/{workflows => workflows-disabled}/flawfinder.yml | 0 .github/{workflows => workflows-disabled}/nix-build.yaml | 0 .../{workflows => workflows-disabled}/nix-meson-ver-update.yaml | 0 .github/{workflows => workflows-disabled}/nix-update.yaml | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename .github/{workflows => workflows-disabled}/ci.yaml (100%) rename .github/{workflows => workflows-disabled}/flawfinder.yml (100%) rename .github/{workflows => workflows-disabled}/nix-build.yaml (100%) rename .github/{workflows => workflows-disabled}/nix-meson-ver-update.yaml (100%) rename .github/{workflows => workflows-disabled}/nix-update.yaml (100%) diff --git a/.github/workflows/ci.yaml b/.github/workflows-disabled/ci.yaml similarity index 100% rename from .github/workflows/ci.yaml rename to .github/workflows-disabled/ci.yaml diff --git a/.github/workflows/flawfinder.yml b/.github/workflows-disabled/flawfinder.yml similarity index 100% rename from .github/workflows/flawfinder.yml rename to .github/workflows-disabled/flawfinder.yml diff --git a/.github/workflows/nix-build.yaml b/.github/workflows-disabled/nix-build.yaml similarity index 100% rename from .github/workflows/nix-build.yaml rename to .github/workflows-disabled/nix-build.yaml diff --git a/.github/workflows/nix-meson-ver-update.yaml b/.github/workflows-disabled/nix-meson-ver-update.yaml similarity index 100% rename from .github/workflows/nix-meson-ver-update.yaml rename to .github/workflows-disabled/nix-meson-ver-update.yaml diff --git a/.github/workflows/nix-update.yaml b/.github/workflows-disabled/nix-update.yaml similarity index 100% rename from .github/workflows/nix-update.yaml rename to .github/workflows-disabled/nix-update.yaml From 9580ef4bc246fd9a25a626c31a62cb0153d2bb34 Mon Sep 17 00:00:00 2001 From: Fernando Ayats Date: Wed, 13 Jul 2022 10:35:23 +0200 Subject: [PATCH 3/5] ci: upload source --- .github/workflows/release.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 From 868fc6e0f32b8f5c9c10eca41fdf048ec64eeea0 Mon Sep 17 00:00:00 2001 From: Fernando Ayats Date: Wed, 13 Jul 2022 10:36:47 +0200 Subject: [PATCH 4/5] Revert "FIXME: temp disable workflows" This reverts commit 532ffe16811dea5a8f4c9730ec7e2bb0fd1b9395. --- .github/{workflows-disabled => workflows}/ci.yaml | 0 .github/{workflows-disabled => workflows}/flawfinder.yml | 0 .github/{workflows-disabled => workflows}/nix-build.yaml | 0 .../{workflows-disabled => workflows}/nix-meson-ver-update.yaml | 0 .github/{workflows-disabled => workflows}/nix-update.yaml | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename .github/{workflows-disabled => workflows}/ci.yaml (100%) rename .github/{workflows-disabled => workflows}/flawfinder.yml (100%) rename .github/{workflows-disabled => workflows}/nix-build.yaml (100%) rename .github/{workflows-disabled => workflows}/nix-meson-ver-update.yaml (100%) rename .github/{workflows-disabled => workflows}/nix-update.yaml (100%) diff --git a/.github/workflows-disabled/ci.yaml b/.github/workflows/ci.yaml similarity index 100% rename from .github/workflows-disabled/ci.yaml rename to .github/workflows/ci.yaml diff --git a/.github/workflows-disabled/flawfinder.yml b/.github/workflows/flawfinder.yml similarity index 100% rename from .github/workflows-disabled/flawfinder.yml rename to .github/workflows/flawfinder.yml diff --git a/.github/workflows-disabled/nix-build.yaml b/.github/workflows/nix-build.yaml similarity index 100% rename from .github/workflows-disabled/nix-build.yaml rename to .github/workflows/nix-build.yaml diff --git a/.github/workflows-disabled/nix-meson-ver-update.yaml b/.github/workflows/nix-meson-ver-update.yaml similarity index 100% rename from .github/workflows-disabled/nix-meson-ver-update.yaml rename to .github/workflows/nix-meson-ver-update.yaml diff --git a/.github/workflows-disabled/nix-update.yaml b/.github/workflows/nix-update.yaml similarity index 100% rename from .github/workflows-disabled/nix-update.yaml rename to .github/workflows/nix-update.yaml From d7d5b1a4eb14b6986a1e74c96ee443f1c56c1fd4 Mon Sep 17 00:00:00 2001 From: Fernando Ayats Date: Wed, 13 Jul 2022 10:39:57 +0200 Subject: [PATCH 5/5] ci: fix repo source --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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