From 9074c9662a6c81601a73b4482f64675646f224d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20S=2E=20Dokken?= Date: Tue, 21 Nov 2023 09:12:03 +0100 Subject: [PATCH] Add some more --- docs/ci.md | 47 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-) diff --git a/docs/ci.md b/docs/ci.md index c1edb54..b960cf5 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -221,7 +221,6 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${PYTHON_VERSION} - ``` --- @@ -237,4 +236,48 @@ jobs: basix: main petsc_arch: ${PETSC_ARCH} ``` -Custom action available + +--- + +### You can use actions across repositories + +Example from: [https://github.com/jorgensd/actions](https://github.com/jorgensd/actions/) +```yaml +name: Use a remote action +on: + push: + branches: ["dokken/ci"] +jobs: + test: + runs-on: ubuntu-latest + container: ghcr.io/fenics/dolfinx/dolfinx:nightly + steps: + - name: "Use remote action" + uses: jorgensd/actions/install-dolfinx@v0.1.0 +``` + +--- + +### Upload data + +```yaml + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + path: ${{ env.PUBLISH_DIR }} + if-no-files-found: error + name: documentation +``` + +--- + +### Download data + +```yaml + - name: Download docs artifact + uses: actions/download-artifact@v3 + with: + name: documentation + path: "./public" + +``` \ No newline at end of file