Skip to content

Commit

Permalink
Update Ubuntu to 20.04. Enable automated deployments. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
adthrasher authored Aug 13, 2021
1 parent 75d9c97 commit d494ccb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish_dx.yml
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
7 changes: 4 additions & 3 deletions dxapp.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
"summary": "stjude_star",
"title": "STAR RNA Alignment (St. Jude)",
"name": "stjude_star",
"version": "STAR_SHORT_VERSION",
"runSpec": {
"distribution": "Ubuntu",
"interpreter": "python2.7",
"release": "14.04",
"interpreter": "python3",
"release": "20.04",
"version": "0",
"file": "src/code.py",
"timeoutPolicy": {
"*": {
Expand Down Expand Up @@ -77,7 +79,6 @@
"help": ""
}
],
"version": "1.2.0",
"regionalOptions": {
"azure:westus": {
"systemRequirments": {
Expand Down

0 comments on commit d494ccb

Please sign in to comment.