Skip to content

Commit

Permalink
Update static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bourumir-wyngs authored Jun 1, 2024
1 parent b926fc2 commit ed3fec1
Showing 1 changed file with 14 additions and 23 deletions.
37 changes: 14 additions & 23 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,37 +24,28 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

# - name: Install mdbook (optional, if you use mdbook)
# run: cargo install mdbook

- name: Build documentation
run: cargo doc --no-deps

- name: Identify location
run: pwd

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Build documentation
run: cargo doc --no-deps

- name: Identify location
run: pwd
- name: Identify location 2
run: ls -l

run: pwd

- name: Checkout
uses: actions/checkout@v4
Expand All @@ -64,7 +55,7 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
# Upload generated documentation
path: /home/runner/work/rs-opw-kinematics/rs-opw-kinematics/target/doc
path: target/doc
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit ed3fec1

Please sign in to comment.