diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e17c888..40b42c3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,19 +81,12 @@ jobs: flatpak build-bundle --arch=aarch64 /opt/pakrepo ./signal.flatpak org.signal.Signal master cp ./signal.flatpak ~/ sha256sum signal.flatpak | tee -a checksums.txt - - name: checkout gh-pages branch - uses: actions/checkout@v4 - with: - ref: gh-pages - - name: sync to gh-pages branch repo dir and commit + - name: sync to server shell: bash run: | - rsync -a --delete /opt/pakrepo/ ./repo/ - git config --global user.email "${{ github.actor }}@users.noreply.github.com" - git config --global user.name "${{ github.actor }}" - git add repo - git commit -m "repo update" - git push + rsync -azu --delete /opt/pakrepo/ server:/var/www/htdocs/elagost.com/flatpak/repo/ + rsync -z ~/signal-desktop.deb server:/var/www/htdocs/elagost.com/flatpak/ + rsync -z ~/signal.flatpak server:/var/www/htdocs/elagost.com/flatpak/ - name: clean up images for self-hosted runner env: VERSION: "7.20.0" @@ -104,7 +97,7 @@ jobs: - name: Upload release artifacts env: VERSION: "7.20.0" - uses: AButler/upload-release-assets@v3.0 + uses: AButler/upload-release-assets@v3 with: release-tag: ${{ env.VERSION }} files: "signal-desktop.deb;signal.flatpak;checksums.txt"