Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
flodolo committed Jan 22, 2024
1 parent ba3a068 commit 8353975
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,21 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions:
contents: write

jobs:
fetch:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Install Rust packages
- name: Install mdbook
run: |
curl --proto '=https' --tlsv1.2 -sSf https://rossmacarthur.github.io/install/crate.sh | bash -s -- --repo "rust-lang/mdBook" --bin mdbook --to ~/.cargo/bin
version="v0.4.36"
mkdir installed-bins
curl -Lf "https://github.com/rust-lang/mdBook/releases/download/{$version}/mdbook-{$version}-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./installed-bins
echo `pwd`/installed-bins >> $GITHUB_PATH
- name: Install gh-pages
run: |
npm install gh-pages@"~6.1.1"
Expand All @@ -33,7 +39,6 @@ jobs:
run: |
git config --global user.email "[email protected]"
git config --global user.name 'Automation'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- name: Deploy to GitHub pages
run: |
npx gh-pages --message "Deploy docs" --no-history --dist build
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"build": "npm run --silent build:guide",
"ci": "npm run --silent lint && npm test && npm run --silent test:ebnf && npm run --silent test:validate",
"clean": "rm -rf build",
"deploy": "gh-pages -d build",
"generate:ebnf": "node -r esm bin/ebnf.js ./syntax/grammar.js > ./spec/fluent.ebnf",
"generate:fixtures": "make -sC test/fixtures",
"generate": "npm run --silent generate:ebnf && npm run --silent generate:fixtures",
Expand Down Expand Up @@ -40,7 +39,6 @@
"eslint": "^6.7.2",
"@fluent/bundle": "^0.14.0",
"@fluent/syntax": "^0.14.0",
"gh-pages": "^6.1.1",
"json-diff": "^0.5.4"
},
"dependencies": {
Expand Down

0 comments on commit 8353975

Please sign in to comment.