From d73dd74b7c0972cbaa30a9393aa14f2f82040bc4 Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Thu, 14 Nov 2024 23:31:03 +0100 Subject: [PATCH] try with only one version --- .gitea/workflows/binaries.yaml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/binaries.yaml b/.gitea/workflows/binaries.yaml index 1b0e2ef..7db68a0 100644 --- a/.gitea/workflows/binaries.yaml +++ b/.gitea/workflows/binaries.yaml @@ -5,24 +5,25 @@ on: push: branches: - main + # Runs every day at 1 a.m. + schedule: + - cron: '0 1 * * *' - # Allows you to run this workflow manually from the Actions tab workflow_dispatch: jobs: - # Build job build: strategy: matrix: os: ["ubuntu-22.04"] - version: ["3.3.6", "3.3.5", "3.2.6", "3.2.0", "3.1.6", "3.0.6"] + version: ["3.2.0"] runs-on: ${{ matrix.os }} steps: - name: checkout pages uses: actions/checkout@v4 with: - ref: "pages" - path: "pages" + ref: "binaries" + path: "binaries" - name: setup and package Ruby run: | apt-get update && \ @@ -34,14 +35,12 @@ jobs: rvm get head && \ rvm install ${{ matrix.version }} && \ ruby -v && \ - rvm prepare ${{ matrix.version }} && \ - mkdir -p pages/$(cut -d '-' -f0 << "${{ matrix.os }}")/$(cut -d '-' -f1 << "${{ matrix.os }}") && \ - mv ruby-${{ matrix.version }}-*.tar.bz2 pages/$(cut -d '-' -f0 << "${{ matrix.os }}")/$(cut -d '-' -f1 << "${{ matrix.os }}")/ + rvm prepare ${{ matrix.version }} --path - name: push binaries run: | - cd pages && \ + cd binaries && \ git config user.name "${{ gitea.actor }}" && \ git config user.email ""${{ gitea.actor }}"@noreply.git.morlana.online" && \ - git add . && \ + git add -A && \ git commit -m "ruby ${{ matrix.version }} build for ${{ matrix.os }} from Action ${GITHUB_SHA}" && \ git push