Compare commits
2 commits
9c1df68008
...
56902cf065
Author | SHA1 | Date | |
---|---|---|---|
asonix | 56902cf065 | ||
asonix | 6e85542b49 |
|
@ -31,13 +31,54 @@ jobs:
|
||||||
apt-get -y install ruby-full libidn-dev
|
apt-get -y install ruby-full libidn-dev
|
||||||
gem install bundler
|
gem install bundler
|
||||||
-
|
-
|
||||||
name: Install Dependencies
|
name: Configure Bundler
|
||||||
run: |
|
run: |
|
||||||
bundle config set --local deployment true
|
bundle config set --local deployment true
|
||||||
bundle config set --local without 'development test'
|
bundle config set --local without 'development test'
|
||||||
|
bundle config set --local path vendor/bundle
|
||||||
bundle config set silence_root_warning true
|
bundle config set silence_root_warning true
|
||||||
|
-
|
||||||
|
name: Fetch gem cache
|
||||||
|
id: gem-cache
|
||||||
|
uses: https://github.com/actions/cache/restore@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
vendor/bundle/
|
||||||
|
key: gem-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}
|
||||||
|
-
|
||||||
|
name: Install gems
|
||||||
|
if: steps.gem-cache.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
bundle install -j$(nproc)
|
bundle install -j$(nproc)
|
||||||
|
-
|
||||||
|
name: Save gem cache
|
||||||
|
if: steps.gem-cache.outputs.cache-hit != 'true'
|
||||||
|
uses: https://github.com/actions/cache/save@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
vendor/bundle/
|
||||||
|
key: ${{ steps.gem-cache.outputs.cache-primary-key }}
|
||||||
|
-
|
||||||
|
name: Fetch node cache
|
||||||
|
id: node-cache
|
||||||
|
uses: https://github.com/actions/cache/restore@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
node_modules/
|
||||||
|
key: gem-${{ hashFiles('Gemfile') }}-${{ hashFiles('Gemfile.lock') }}
|
||||||
|
-
|
||||||
|
name: Install node packages
|
||||||
|
if: steps.node-cache.outputs.cache-hit != 'true'
|
||||||
|
run: |
|
||||||
yarn install --pure-lockfile --production --network-timeout=30000
|
yarn install --pure-lockfile --production --network-timeout=30000
|
||||||
|
-
|
||||||
|
name: Save node cache
|
||||||
|
if: steps.node-cache.outputs.cache-hit != 'true'
|
||||||
|
uses: https://github.com/actions/cache/save@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
node_modules/
|
||||||
|
key: ${{ steps.node-cache.outputs.cache-primary-key }}
|
||||||
-
|
-
|
||||||
name: Build Assets
|
name: Build Assets
|
||||||
run: bundle exec rails assets:precompile
|
run: bundle exec rails assets:precompile
|
||||||
|
@ -91,7 +132,12 @@ jobs:
|
||||||
path: .
|
path: .
|
||||||
-
|
-
|
||||||
name: GUnzip Assets
|
name: GUnzip Assets
|
||||||
run: tar -zxf public.tar.gz
|
run: |
|
||||||
|
tar -zxf public.tar.gz
|
||||||
|
echo "ls ."
|
||||||
|
ls -lh .
|
||||||
|
echo "ls public"
|
||||||
|
ls -lh public/
|
||||||
-
|
-
|
||||||
name: Prepare Platform
|
name: Prepare Platform
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in a new issue