Skip to content

Commit faccdd8

Browse files
committed
Update gems
1 parent 1f61dbf commit faccdd8

File tree

4 files changed

+49
-52
lines changed

4 files changed

+49
-52
lines changed
Lines changed: 42 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,59 @@
11
name: Build and Deploy static content to GitHub Pages
2-
32
on:
43
push:
54
branches: master
65
pull_request:
76
branches: master
8-
97
# Allows you to run this workflow manually from the Actions tab
108
workflow_dispatch:
119

12-
permissions:
13-
contents: read
14-
pages: write
15-
id-token: write
16-
1710
# Allow one concurrent deployment
1811
concurrency:
1912
group: "pages"
2013
cancel-in-progress: true
2114

2215
jobs:
23-
build:
24-
environment:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: cachix/install-nix-action@v20
21+
with:
22+
nix_path: nixpkgs=channel:nixos-unstable
23+
- name: Build website
24+
run: |
25+
nix build .
26+
mkdir -p build
27+
cp -R result/* build
28+
- name: Build documentation
29+
env:
30+
OWNER: afh
31+
REPO: ledger
32+
run: |
33+
# TODO: change ledger to ${OWNER} prior to merging
34+
LATEST=$(curl -sqI -w '%{redirect_url}' -o /dev/null https://github.com/ledger/${REPO}/releases/latest | awk -F/ '{print $NF}')
35+
# TODO: remove this override prior to merging
36+
LATEST=web-docs
37+
nix build github:${OWNER}/${REPO}/${LATEST}#web-docs
38+
mkdir -p build/doc
39+
cp result/share/doc/ledger/ledger* build/doc
40+
- name: Setup Pages
41+
uses: actions/configure-pages@v3
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v1
44+
with:
45+
path: 'build'
46+
deploy:
47+
needs: build
48+
permissions:
49+
contents: read
50+
pages: write
51+
id-token: write
52+
environment:
2553
name: github-pages
2654
url: ${{ steps.deployment.outputs.page_url }}
27-
28-
runs-on: ubuntu-latest
29-
steps:
30-
- uses: cachix/install-nix-action@v20
31-
with:
32-
nix_path: nixpkgs=channel:nixos-unstable
33-
34-
- uses: actions/checkout@v3
35-
- name: Build website
36-
run: |
37-
nix build .
38-
mkdir -p build
39-
cp -R result/* build
40-
41-
- name: Build documentation
42-
env:
43-
OWNER: afh
44-
REPO: ledger
45-
run: |
46-
# TODO: change ledger to ${OWNER} prior to merging
47-
LATEST=$(curl -sqI -w '%{redirect_url}' -o /dev/null https://github.com/ledger/${REPO}/releases/latest | awk -F/ '{print $NF}')
48-
# TODO: remove this override prior to merging
49-
LATEST=web-docs
50-
nix build github:${OWNER}/${REPO}/${LATEST}#web-docs
51-
mkdir -p build/doc
52-
cp result/share/doc/ledger/ledger* build/doc
53-
54-
- name: Setup Pages
55-
uses: actions/configure-pages@v3
56-
- name: Upload artifact
57-
uses: actions/upload-pages-artifact@v1
58-
with:
59-
path: 'build'
60-
- name: Deploy to GitHub Pages
61-
id: deployment
62-
uses: actions/deploy-pages@v1
55+
runs-on: ubuntu-latest
56+
steps:
57+
- name: Deploy to GitHub Pages
58+
id: deployment
59+
uses: actions/deploy-pages@v2

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GEM
1010
public_suffix (>= 2.0.2, < 6.0)
1111
autoprefixer-rails (10.4.13.0)
1212
execjs (~> 2)
13-
backports (3.23.0)
13+
backports (3.24.0)
1414
coffee-script (2.4.1)
1515
coffee-script-source
1616
execjs
@@ -85,7 +85,7 @@ GEM
8585
parallel (1.22.1)
8686
parslet (2.0.0)
8787
public_suffix (5.0.1)
88-
rack (2.2.6.3)
88+
rack (2.2.6.4)
8989
rb-fsevent (0.11.2)
9090
rb-inotify (0.10.1)
9191
ffi (~> 1.0)

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
2828

29-
nativeBuildInputs = with pkgs; [ gems ruby node ];
29+
nativeBuildInputs = with pkgs; [ gems ruby nodejs ];
3030

3131
buildPhase = ''
3232
runHook preBuild

gemset.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@
3737
platforms = [];
3838
source = {
3939
remotes = ["https://rubygems.org"];
40-
sha256 = "13ql00lw0fpvyil0ikw3y5cwn19nvk5h5fm2z8ai19c302j2dz48";
40+
sha256 = "198nz2b8775rhp5qrh0q2r2qx8ljyjzvgm93wqjlwgw0w0zbycny";
4141
type = "gem";
4242
};
43-
version = "3.23.0";
43+
version = "3.24.0";
4444
};
4545
coffee-script = {
4646
dependencies = ["coffee-script-source" "execjs"];
@@ -339,10 +339,10 @@
339339
platforms = [];
340340
source = {
341341
remotes = ["https://rubygems.org"];
342-
sha256 = "17wg99w29hpiq9p4cmm8c6kdg4lcw0ll2c36qw7y50gy1cs4h5j2";
342+
sha256 = "1qgwkcb8kxns8d5187cxjaxf18b7dmg9gh6cr9c1125m0bj2pnfk";
343343
type = "gem";
344344
};
345-
version = "2.2.6.3";
345+
version = "2.2.6.4";
346346
};
347347
rb-fsevent = {
348348
groups = ["default"];

0 commit comments

Comments
 (0)