Files
fastfetch/.github/workflows/push.yml
T
2022-03-24 21:32:45 +01:00

34 lines
959 B
YAML

name: manage pushes
on:
push:
branches: [ master ]
jobs:
manage:
name: Create GitHub release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: run build and check
uses: ./.github/workflows/check.yml
- name: Get fastfetch version
id: get_version_fastfetch
run: echo "::set-output name=release::$(./fastfetch --version-raw)"
- name: Get latest release version
id: get_version_release
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: ${{ github.repository }}
- name: Push release
if: steps.get_version_fastfetch.outputs.release != steps.get_version_release.outputs.release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.get_version_fastfetch.outputs.release }}
commit: ${{ github.sha }}
artifacts: ./fastfetch,./packaging/deb/fastfetch.deb