Skip to content

Commit

Permalink
TEST - added pull_request event and remove env
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Sep 2, 2024
1 parent 6ee8167 commit 68b84f2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ jobs:
- run: forklift cargo doc --workspace --all-features --no-deps
env:
SKIP_WASM_BUILD: 1
test-doc:
runs-on: arc-runners-polkadot-sdk-beefy
needs: [set-image]
container:
image: ${{ needs.set-image.outputs.IMAGE }}
steps:
- uses: actions/checkout@v4
- run: forklift cargo test --doc --workspace
env:
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
# test-doc:
# runs-on: arc-runners-polkadot-sdk-beefy
# needs: [set-image]
# container:
# image: ${{ needs.set-image.outputs.IMAGE }}
# steps:
# - uses: actions/checkout@v4
# - run: forklift cargo test --doc --workspace
# env:
# RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"

build-rustdoc:
runs-on: arc-runners-polkadot-sdk-beefy
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/publish-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
pull_request:

jobs:
build-docs:
Expand All @@ -12,17 +13,14 @@ jobs:

publish-rustdoc:
runs-on: ubuntu-latest
environment: subsystem-benchmarks
permissions:
actions: read
contents: write
needs: [build-docs]
steps:
- uses: actions/checkout@v4
with:
ref: gh-pages
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.POLKADOTSDK_GHPAGES_APP_ID }}
private-key: ${{ secrets.POLKADOTSDK_GHPAGES_APP_KEY }}
- name: Ensure destination dir does not exist
run: |
rm -rf book/
Expand All @@ -47,7 +45,7 @@ jobs:
- name: Push to GH-Pages branch
uses: github-actions-x/commit@v2.9
with:
github-token: ${{ steps.app-token.outputs.token }}
github-token: ${{ github.secret }}
push-branch: "gh-pages"
commit-message: "___Updated docs for ${{ github.head_ref || github.ref_name }}___"
force-add: "true"
Expand Down

0 comments on commit 68b84f2

Please sign in to comment.