-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Ubuntu to 20.04. Enable automated deployments. (#1)
- Loading branch information
1 parent
75d9c97
commit d494ccb
Showing
2 changed files
with
33 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Publish DNAnexus app | ||
on: | ||
release: | ||
types: [released, edited] | ||
|
||
jobs: | ||
push_to_DNAnexus: | ||
name: Push app to DNAnexus | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Check out the repo | ||
uses: actions/checkout@v2 | ||
- | ||
name: Sanitize Version for Tagging | ||
run: echo ${{ github.event.release.tag_name }} | sed 's/^v//' | (read; echo SHORT_VERSION=$REPLY) >> $GITHUB_ENV | ||
- | ||
name: Update DX version | ||
run: sed -i.bak "s/STAR_SHORT_VERSION/${{ env.SHORT_VERSION }}/" dxapp.json | ||
- | ||
name: Install DX toolkit | ||
run: pip3 install dxpy | ||
- | ||
name: Login to DNAnexus | ||
run: dx login --noprojects --token ${{ secrets.DX_TOKEN }} | ||
- | ||
name: Build and push | ||
id: dx_build | ||
run: bash ./build.sh --app ${{ env.SHORT_VERSION }} --publish |
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