try with only one version
All checks were successful
Building binaries / build (ubuntu-22.04, 3.2.0) (push) Successful in 2m39s
All checks were successful
Building binaries / build (ubuntu-22.04, 3.2.0) (push) Successful in 2m39s
This commit is contained in:
parent
8778885896
commit
d73dd74b7c
@ -5,24 +5,25 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- 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:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Build job
|
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: ["ubuntu-22.04"]
|
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 }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- name: checkout pages
|
- name: checkout pages
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: "pages"
|
ref: "binaries"
|
||||||
path: "pages"
|
path: "binaries"
|
||||||
- name: setup and package Ruby
|
- name: setup and package Ruby
|
||||||
run: |
|
run: |
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
@ -34,14 +35,12 @@ jobs:
|
|||||||
rvm get head && \
|
rvm get head && \
|
||||||
rvm install ${{ matrix.version }} && \
|
rvm install ${{ matrix.version }} && \
|
||||||
ruby -v && \
|
ruby -v && \
|
||||||
rvm prepare ${{ matrix.version }} && \
|
rvm prepare ${{ matrix.version }} --path
|
||||||
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 }}")/
|
|
||||||
- name: push binaries
|
- name: push binaries
|
||||||
run: |
|
run: |
|
||||||
cd pages && \
|
cd binaries && \
|
||||||
git config user.name "${{ gitea.actor }}" && \
|
git config user.name "${{ gitea.actor }}" && \
|
||||||
git config user.email ""${{ gitea.actor }}"@noreply.git.morlana.online" && \
|
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 commit -m "ruby ${{ matrix.version }} build for ${{ matrix.os }} from Action ${GITHUB_SHA}" && \
|
||||||
git push
|
git push
|
||||||
|
Loading…
x
Reference in New Issue
Block a user