PrideFetch/.github/workflows/main.yml

41 lines
1.0 KiB
YAML
Raw Normal View History

2022-05-24 15:31:47 +01:00
name: Build pridefetch executable file
2022-05-24 15:00:02 +01:00
on:
push:
branches: [ packaging ]
pull_request:
branches: [ packaging ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Zip the package
run: |
cd src
zip -r ../pridefetch.zip *
2022-05-24 15:10:32 +01:00
cd ..
2022-05-24 15:00:02 +01:00
2022-05-24 15:31:47 +01:00
- name: Turn into an executable file
2022-05-24 15:00:02 +01:00
run: |
echo '#!/usr/bin/env python' | cat - pridefetch.zip > pridefetch
chmod +x pridefetch
2022-05-24 15:09:12 +01:00
2022-05-24 15:31:47 +01:00
- name: Remove the zip file
run: rm pridefetch.zip
- name: Add and commit files
2022-05-24 15:09:12 +01:00
run: |
2022-05-24 15:10:32 +01:00
git add pridefetch
2022-05-24 15:09:12 +01:00
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Build executable" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}