Skip to content

Add workflow for github pages #10

Add workflow for github pages

Add workflow for github pages #10

Workflow file for this run

name: gh-pages
on:
push:
branches:
- "main"
- "rkuris/doc-it-hurts-when-i-do-this"
pull_request:
branches:
- "main"
- "rkuris/doc-it-hurts-when-i-do-this"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: arduino/setup-protoc@v2
- name: Build
run: cargo doc --no-deps
- name: Deploy
run: |
mkdir _site
git clean -f docs
echo "<meta http-equiv=\"refresh\" content=\"0; url=firewood\">" > _site/index.html
run: cp -r target/doc/* ./_site

Check failure on line 33 in .github/workflows/gh-pages.yaml

View workflow run for this annotation

GitHub Actions / gh-pages

Invalid workflow file

The workflow is not valid. .github/workflows/gh-pages.yaml (Line: 33, Col: 9): 'run' is already defined
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
- name: Deploy to GitHub pages
id: deployment
uses: actions/deploy-pages@v2