Skip to content

Reproduce ns-3 per-commit CI pipelines (push, MR) #2

Reproduce ns-3 per-commit CI pipelines (push, MR)

Reproduce ns-3 per-commit CI pipelines (push, MR) #2

Workflow file for this run

# CI job to deploy the documentation on another repository
on:
push:
branches: [develop]
pull_request:
branches: [develop]
#types:
# - closed
workflow_call:
workflow_dispatch:
jobs:
deploy-doc:
#if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
container:
image: archlinux
timeout-minutes: 120
continue-on-error: true
steps:
# The following step is required in all jobs that use this repo's actions
- name: "Retrieve actions from repository"
uses: actions/checkout@v4
with:
sparse-checkout: .github/actions
- name: "Install dependencies and checkout repo in ns-3"
uses: ./.github/actions/install-doc
- name: "Build ns-3"
env:
BUILD_ID: per-commit-g++-debug
COMPILER: g++
MODE: debug
uses: ./.github/actions/build
with:
save-ccache: "false"
store-artifacts: "false"
- name: "Build documentation"
run: ./ns3 docs all
- name: "Deploy documentation"
uses: cpina/github-action-push-to-another-repository@v1
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: "doc/"
destination-github-username: "signetlabdei"
destination-repository-name: "lorawan-docs"
user-email: [email protected]
target-branch: master