From c9fb4dbbc355ed9e5535b1cdb1221aae46fb11f0 Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Thu, 5 Sep 2024 00:41:04 +0100 Subject: [PATCH] cat manifest --- .github/workflows/catmanifest.yml | 54 +++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/catmanifest.yml diff --git a/.github/workflows/catmanifest.yml b/.github/workflows/catmanifest.yml new file mode 100644 index 000000000..3b4e2c1a1 --- /dev/null +++ b/.github/workflows/catmanifest.yml @@ -0,0 +1,54 @@ +name: Cat Manifest + +on: + push: + branches: + - pysm/cat-manifest + workflow_dispatch: # manual trigger for testing + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Julia + uses: julia-actions/setup-julia@v2 + with: + version: '1.10' + + - name: Instantiate Julia environment + run: julia --project=. -e 'using Pkg; Pkg.instantiate()' + + - name: Set up Quarto + uses: quarto-dev/quarto-actions/setup@v2 + + - name: Install jq + run: sudo apt-get install jq + + - name: Cat Manifest + run: cat Manifest.toml + + - name: Restore cached _freeze folder + id: cache-restore + uses: actions/cache/restore@v4 + with: + path: | + _freeze/ + key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }} + + - name: Render Quarto site + run: quarto render + + - name: Cat Manifest + run: cat Manifest.toml + + - name: Save _freeze folder + id: cache-save + uses: actions/cache/save@v4 + with: + path: | + _freeze/ + key: ${{ runner.os }}-${{ hashFiles('**/Manifest.toml') }}