From fc108240fb9b5e0eed659508336f6db51b70b88f Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Sat, 2 Nov 2024 17:28:55 +0000 Subject: [PATCH] Create GitHub action for releasing _freeze folder --- .github/workflows/create_release.yml | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/create_release.yml diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml new file mode 100644 index 000000000..2789b165a --- /dev/null +++ b/.github/workflows/create_release.yml @@ -0,0 +1,39 @@ +name: Create release with _freeze + +on: + - workflow_dispatch + # Comment out before merging!! + - push: + branches: + - py/release-workflow + +jobs: + build: + 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: Set up Quarto + uses: quarto-dev/quarto-actions/setup@v2 + with: + # Needs Quarto 1.6 (which is currently a pre-release version) to fix #533 + version: pre-release + + - name: Render + run: quarto render + + - name: Compress _freeze folder + run: tar -czf _freeze.tar.gz _freeze + + - name: Create GitHub release + uses: softprops/action-gh-release@v2 + with: + files: + - _freeze.tar.gz + - Manifest.toml