Skip to content

Commit e72dbe1

Browse files
committed
Update GitHub Actions workflow for Jekyll
1 parent 90ea968 commit e72dbe1

1 file changed

Lines changed: 7 additions & 36 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -12,47 +12,18 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v3
1414

15-
- name: Set up Elixir
16-
uses: erlef/setup-beam@v1
15+
- name: Set up Ruby
16+
uses: ruby/setup-ruby@v1
1717
with:
18-
elixir-version: '1.15.7'
19-
otp-version: '26.2.1'
18+
ruby-version: '3.1'
19+
bundler-cache: true
2020

21-
- name: Restore dependencies cache
22-
uses: actions/cache@v3
23-
with:
24-
path: |
25-
deps
26-
_build
27-
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
28-
restore-keys: ${{ runner.os }}-mix-
29-
30-
- name: Install dependencies
31-
run: mix deps.get
32-
33-
- name: Install Node.js
34-
uses: actions/setup-node@v3
35-
with:
36-
node-version: '18'
37-
38-
- name: Install npm dependencies
39-
run: |
40-
cd assets
41-
npm install
42-
43-
- name: Build assets
44-
run: |
45-
cd assets
46-
npm run deploy
47-
cd ..
48-
mix assets.deploy
49-
50-
- name: Build static files
51-
run: mix phx.digest
21+
- name: Build site
22+
run: bundle exec jekyll build
5223

5324
- name: Deploy to GitHub Pages
5425
uses: peaceiris/actions-gh-pages@v3
5526
with:
5627
github_token: ${{ secrets.GITHUB_TOKEN }}
57-
publish_dir: ./priv/static
28+
publish_dir: ./_site
5829
force_orphan: true

0 commit comments

Comments
 (0)