Hyprland/.github/workflows/release.yaml

39 lines
1,021 B
YAML
Raw Normal View History

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
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
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