diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2022-07-14 12:54:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-14 12:54:49 +0200 |
| commit | b0dd37042120f5ddaf210185a6d225fbd61ced4f (patch) | |
| tree | e88a6024d734c33c5d5ec5582fedd288d3e6fa01 /.github | |
| parent | 65e75c0b4427965a0fa3386e2bd27e58f195d2d6 (diff) | |
| parent | d7d5b1a4eb14b6986a1e74c96ee443f1c56c1fd4 (diff) | |
Merge pull request #342 from viperML/main
ci: add release workflow
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yaml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..cb32972f --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,38 @@ +name: Release artifacts + +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: hyprwm + 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: source-${{ steps.whatrelease.outputs.release }}.tar.gz + tag: ${{ steps.whatrelease.outputs.release }} + overwrite: true |
