Skip to content

Commit

Permalink
deploy via actions
Browse files Browse the repository at this point in the history
  • Loading branch information
itsnotsos committed Nov 19, 2024
1 parent 7a020a3 commit 3950a34
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Install dependencies
run: |
dnf install -y git rpm-build createrepo curl jq tar
dnf install -y git rpm-build createrepo_c curl jq tar
- name: Prepare and Build RPM
run: |
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy Materialgram RPM Repository

on:
workflow_run:
workflows: ["Materialgram RPM Builder"]
types:
- completed

permissions:
contents: write

jobs:
update:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./rpms
force_orphan: true
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fi
echo "Updating repository metadata..."
cd "$GITHUB_WORKSPACE/repo/rpms"
rm -rf repodata
createrepo .
createrepo --update .
cd ..
echo "Adding and committing changes to git..."
git config --global user.name "itsnotsos"
Expand Down
4 changes: 2 additions & 2 deletions materialgram.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Name: materialgram
Version: 5.8.1.1
Release: 1%{?dist}
Version: 5.7.0.1
Release: 2%{?dist}
Summary: Telegram Desktop fork with material icons and some improvements
Vendor: burhancodes
Group: Applications/Internet
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.8.1.1
5.7.0.1

0 comments on commit 3950a34

Please sign in to comment.