Skip to content

Commit

Permalink
Restore comments for triggering action nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiMacielPereira committed Mar 15, 2024
1 parent 1444512 commit 3c9b20b
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/deploy_conda_nightly.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Deploy mvesuvio nightly

on: push
# workflow_run:
# workflows: ["mvesuvio nightly build"]
# branches: [main]
# types:
# - completed
on:
workflow_run:
workflows: ["mvesuvio nightly build"]
branches: [main]
types:
- completed

jobs:
build_conda_and_upload:
Expand All @@ -19,14 +19,13 @@ jobs:
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: publish-nighly-pypi
# ref: main
ref: main

- name: Check for changes since last build
run: |
echo "recentCommits=$(test -z $(git log --since="yesterday" -1 --format=%h) && echo false || echo true)" >> $GITHUB_ENV
- name: Setup Miniconda
# if: ${{ env.recentCommits == 'true'}}
if: ${{ env.recentCommits == 'true'}}
uses: conda-incubator/[email protected]
with:
miniforge-version: latest
Expand All @@ -36,14 +35,14 @@ jobs:
auto-activate-base: false

- name: Build mvesuvio nightly conda package
# if: ${{ env.recentCommits == 'true'}}
if: ${{ env.recentCommits == 'true'}}
uses: ./.github/actions/publish-conda-package
with:
label: nightly
token: ${{ secrets.ANACONDA_API_TOKEN }}

- name: Build mvesuvio nightly PyPI package
# if: ${{ env.recentCommits == 'true'}}
if: ${{ env.recentCommits == 'true'}}
uses: ./.github/actions/publish-pypi-package
with:
token: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 3c9b20b

Please sign in to comment.