summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorFernando Ayats <ayatsfer@gmail.com>2022-07-13 10:25:21 +0200
committerFernando Ayats <ayatsfer@gmail.com>2022-07-13 10:25:21 +0200
commit0cfc97972f91c58d08b75c995454e6d907f2b859 (patch)
tree7dc033bb2bd06540e3d4824a663e3d3bdad9641b /.github/workflows
parentbf762f566f1c8c5e9c636f0d1ad4e485ad322da9 (diff)
ci: upload source
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release.yaml36
1 files changed, 36 insertions, 0 deletions
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