Skip to content

Commit

Permalink
fix github deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
EloiZ committed Jan 10, 2025
1 parent 94585f2 commit 92f95d2
Showing 1 changed file with 6 additions and 27 deletions.
33 changes: 6 additions & 27 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,15 @@ on:

jobs:
deploy:
runs-on: ubuntu-latest
#runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
# Install Ruby manually since it cannot be installed automatically
- name: Install Ruby
run: |
sudo apt-get update
sudo apt-get install -y git curl libssl-dev zlib1g-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
~/.rbenv/bin/rbenv install 3.2.2
~/.rbenv/bin/rbenv global 3.2.2
# Verify Ruby installation
- name: Check Ruby Version
run: ruby --version
# - name: Setup Ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: '3.2'

- name: Set GEM_HOME
run: echo "export GEM_HOME=$HOME/.gem" >> $GITHUB_ENV

- name: Update PATH for gems
run: echo "export PATH=$HOME/.gem/bin:$PATH" >> $GITHUB_ENV

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
- name: Install Bundler
run: gem install bundler:2.5.11
- name: Install deps
Expand Down

0 comments on commit 92f95d2

Please sign in to comment.