Skip to content

Commit

Permalink
Add release to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsdukai committed Sep 20, 2024
1 parent 3021ac5 commit 09dad9c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/package-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Package and Release
on:
push:
branches: ["main"]
# tags:
# - '*'
tags:
- '*'
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -155,7 +155,6 @@ jobs:
retention-days: 7
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
prerelease: true
repository: 3DGI/geodepot
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/test-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ jobs:
os: [ ubuntu-latest, windows-latest, macos-latest ]
include:
- os: windows-latest
conda_path: C:\Miniconda
conda_exe: C:\Miniconda\Scripts\conda.exe
- os: ubuntu-latest
conda_path: /usr/share/miniconda
conda_exe: conda
- os: macos-latest
conda_path: /Users/runner/miniconda3
conda_exe: conda

steps:
Expand Down Expand Up @@ -54,7 +57,14 @@ jobs:
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA\Scripts >> $GITHUB_PATH
- name: Cache conda environment
id: cache-conda
uses: actions/cache@v4
with:
path: ${{ matrix.conda_path }}
key: ${{ runner.os }}-conda
- name: Install dependencies
if: steps.cache-conda.outputs.cache-hit != 'true'
run: |
${{ matrix.conda_exe }} install -y --name base --solver=classic conda-forge::conda-libmamba-solver conda-forge::libmamba conda-forge::libmambapy conda-forge::libarchive
${{ matrix.conda_exe }} install -y --name base --solver libmamba --channel conda-forge proj=9.4 click=8.1 requests=2.32 fabric=3.2 gdal=3.9 pdal=2.7 python-pdal=3.4 pyinstaller=6.10 pytest ruff
Expand Down

0 comments on commit 09dad9c

Please sign in to comment.