diff --git a/.github/workflows/build.yml b/.gitea/workflows/build.yml similarity index 77% rename from .github/workflows/build.yml rename to .gitea/workflows/build.yml index 31ea3d9..489d235 100644 --- a/.github/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -12,12 +12,12 @@ permissions: jobs: build: - runs-on: ubuntu-latest - container: - image: artixlinux/artixlinux:base-dinit + runs-on: artix steps: - uses: actions/checkout@v4 + with: + token: ${{ secrets.GITEA_TOKEN }} - name: Install deps run: | @@ -74,9 +74,14 @@ jobs: - name: Generate index and package list run: python generate-index.py - - name: Deploy to Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./repo - keep_files: false + - name: Deploy to repo branch + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + run: | + git config user.name "gitea-actions" + git config user.email "actions@antergos-nas.taild4360b.ts.net" + git remote set-url origin "https://git:${GITEA_TOKEN}@antergos-nas.taild4360b.ts.net/Antergos-NeXT/antergos-packages.git" + git checkout -B repo + git add -f repo + git commit -m "Update packages [skip ci]" || echo "Nothing to commit" + git push origin repo --force \ No newline at end of file