diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index 2d5f953..160e18a 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -13,21 +13,24 @@ jobs: strategy: fail-fast: true steps: - - name: "Clone" - uses: actions/checkout@v3 - with: - submodules: recursive - fetch-depth: 0 - name: "Install Build Tools" shell: bash run: | sudo apt-get update sudo apt-get install ruby-full build-essential zlib1g-dev - echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc - echo 'export GEM_HOME="/tmp/gems"' >> ~/.bashrc - echo 'export PATH="/tmp/gems/bin:$PATH"' >> ~/.bashrc - source ~/.bashrc - gem install jekyll bundler + echo "GEM_HOME=$HOME/gems" >> "${GITHUB_ENV}" + echo "PATH=$HOME/bin:$PATH" >> "${GITHUB_ENV}" + sudo gem install bundler + bundle install jekyll + - name: "Clone" + uses: actions/checkout@v3 + with: + submodules: recursive + fetch-depth: 0 + - name: "Install Dependencies" + shell: bash + run: | + bundle install - name: "Build" shell: bash run: |