mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
38 lines
1.0 KiB
YAML
38 lines
1.0 KiB
YAML
name: manage pushes
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
manage:
|
|
name: manage push
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
security-events: write
|
|
steps:
|
|
- name: checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: run build and check
|
|
uses: ./.github/actions/check
|
|
|
|
- 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: create 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
|