-
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.
added deployment section to actions (#31)
- Loading branch information
1 parent
56f1744
commit 66fd012
Showing
1 changed file
with
57 additions
and
57 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 |
---|---|---|
|
@@ -321,65 +321,65 @@ jobs: | |
exit 1 | ||
fi | ||
# # deploy the tools to the toolsheds (first TTS for testing) | ||
# deploy: | ||
# name: Deploy | ||
# needs: [setup, lint, combine_outputs] | ||
# if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' ) && github.repository_owner == 'galaxyproject' }} | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# matrix: | ||
# python-version: ['3.11'] | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# with: | ||
# fetch-depth: 1 | ||
# - uses: actions/setup-python@v5 | ||
# with: | ||
# python-version: ${{ matrix.python-version }} | ||
# - name: Cache .cache/pip | ||
# uses: actions/cache@v4 | ||
# id: cache-pip | ||
# with: | ||
# path: ~/.cache/pip | ||
# key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ needs.setup.outputs.galaxy-head-sha }} | ||
# - name: Deploy on testtoolshed | ||
# uses: galaxyproject/planemo-ci-action@v1 | ||
# with: | ||
# mode: deploy | ||
# repository-list: ${{ needs.setup.outputs.repository-list }} | ||
# shed-target: testtoolshed | ||
# shed-key: ${{ secrets.TTS_API_KEY }} | ||
# continue-on-error: true | ||
# - name: Deploy on toolshed | ||
# uses: galaxyproject/planemo-ci-action@v1 | ||
# with: | ||
# mode: deploy | ||
# repository-list: ${{ needs.setup.outputs.repository-list }} | ||
# shed-target: toolshed | ||
# shed-key: ${{ secrets.TS_API_KEY }} | ||
# deploy the tools to the toolsheds (first TTS for testing) | ||
deploy: | ||
name: Deploy | ||
needs: [setup, lint, combine_outputs] | ||
if: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' ) && github.repository_owner == 'goeckslab' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ['3.11'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Cache .cache/pip | ||
uses: actions/cache@v4 | ||
id: cache-pip | ||
with: | ||
path: ~/.cache/pip | ||
key: pip_cache_py_${{ matrix.python-version }}_gxy_${{ needs.setup.outputs.galaxy-head-sha }} | ||
- name: Deploy on testtoolshed | ||
uses: galaxyproject/planemo-ci-action@v1 | ||
with: | ||
mode: deploy | ||
repository-list: ${{ needs.setup.outputs.repository-list }} | ||
shed-target: testtoolshed | ||
shed-key: ${{ secrets.TTS_API_KEY }} | ||
continue-on-error: true | ||
- name: Deploy on toolshed | ||
uses: galaxyproject/planemo-ci-action@v1 | ||
with: | ||
mode: deploy | ||
repository-list: ${{ needs.setup.outputs.repository-list }} | ||
shed-target: toolshed | ||
shed-key: ${{ secrets.TS_API_KEY }} | ||
|
||
# deploy-report: | ||
# name: Report deploy status | ||
# needs: [deploy] | ||
# if: ${{ always() && needs.deploy.result != 'success' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' ) && github.repository_owner == 'galaxyproject' }} | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# # report to the PR if deployment failed | ||
# - name: Get PR object | ||
# uses: 8BitJonny/[email protected] | ||
# id: getpr | ||
# with: | ||
# sha: ${{ github.event.after }} | ||
# - name: Create comment | ||
# uses: peter-evans/create-or-update-comment@v4 | ||
# with: | ||
# token: ${{ secrets.PAT }} | ||
# issue-number: ${{ steps.getpr.outputs.number }} | ||
# body: | | ||
# Attention: deployment ${{ needs.deploy.result }}! | ||
deploy-report: | ||
name: Report deploy status | ||
needs: [deploy] | ||
if: ${{ always() && needs.deploy.result != 'success' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' ) && github.repository_owner == 'goeckslab' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
# report to the PR if deployment failed | ||
- name: Get PR object | ||
uses: 8BitJonny/[email protected] | ||
id: getpr | ||
with: | ||
sha: ${{ github.event.after }} | ||
- name: Create comment | ||
uses: peter-evans/create-or-update-comment@v4 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
issue-number: ${{ steps.getpr.outputs.number }} | ||
body: | | ||
Attention: deployment ${{ needs.deploy.result }}! | ||
# https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
determine-success: | ||
name: Check workflow success | ||
|