-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (54 loc) · 1.29 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: deploy
on:
push:
branches:
- production
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Set up Ruby 3.2.2
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
- name: Bundle gems
run: |
gem install bundler
bundler install --jobs 4 --retry 3
- name: Run Rake tasks
run: |
bundler exec rake
- name: Prepare FTP directories
run: |
mkdir rva
mv rva_cars.zip rva
mv rva_tracks.zip rva
mv rva_lego_tracks.zip rva
- name: Deploy via FTP
uses: SamKirkland/FTP-Deploy-Action@4.3.0
with:
server: ${{ secrets.FTP_SERVER }}
username: rva
password: ${{ secrets.FTP_PASSWORD }}
local-dir: "./"
server-dir: "./"
exclude: |
**/.git*
**/.git*/**
**/.bundle*
**/.bundle*/**
docs/**
rva_cars/**
rva_lego_tracks/**
rva_tracks/**
.gitignore
.gitmodules
.rubocop.yml
data.rb
Gemfile
Gemfile.lock
Rakefile
README.md