mirror of
https://github.com/tweag/nickel.git
synced 2024-10-04 15:17:34 +03:00
Keep the WASM REPL up-to-date in master
This commit is contained in:
parent
516860c6b9
commit
0a5358d2be
59
.github/workflows/update-wasm-repl.yml
vendored
Normal file
59
.github/workflows/update-wasm-repl.yml
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
name: "Update the Nickel WASM REPL"
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
|
||||
update-wasm-repl:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checking out the repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Installing Nix
|
||||
uses: cachix/install-nix-action@v12
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
||||
- name: Add `unstable` Nix channel
|
||||
run: |
|
||||
nix-channel --add https://nixos.org/channels/nixpkgs-unstable
|
||||
nix-channel --update
|
||||
- name: Installing nixFlakes
|
||||
run: |
|
||||
nix-env -iA nixpkgs.nixFlakes
|
||||
echo 'experimental-features = nix-command flakes' | sudo tee -a /etc/nix/nix.conf
|
||||
echo "$HOME/.nix-profile/bin" >> $GITHUB_PATH
|
||||
- uses: cachix/cachix-action@v8
|
||||
with:
|
||||
name: nickel
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
- name: Build the Nickel WASM REPL
|
||||
run: |
|
||||
nix build ./#buildWasm
|
||||
- name: Update the nickel-repl node package
|
||||
run: |
|
||||
rm -rf website/nickel-repl
|
||||
cp -r result/nickel-repl website/
|
||||
|
||||
- name: Commit update of the Nickel WASM REPL
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: '[auto]Update the Nickel WASM REPL [ci-skip]'
|
||||
branch: 'master'
|
||||
file_pattern: website/nickel-repl
|
||||
# See https://github.community/t/github-actions-bot-email-address/17204/6
|
||||
commit_user_name: github-actions[bot]
|
||||
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com
|
||||
commit_author: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
|
||||
if: github.repository == 'tweag/nickel'
|
Loading…
Reference in New Issue
Block a user