-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore comments for triggering action nightly
- Loading branch information
1 parent
1444512
commit 3c9b20b
Showing
1 changed file
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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 | ||
|
@@ -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 }} |