Skip to content

Commit

Permalink
Added deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
olic32 committed Apr 6, 2023
1 parent fde11ee commit a0c7fd1
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,34 @@ jobs:
# Now we run our tests
- name: Test with pytest
run: |
pipenv run pytest
pipenv run pytest
deploy:
# If we're running on the main branch (not a PR)
if: github.ref == 'refs/heads/main'

# And the tests have run
needs: test

# And no other deploy jobs are running
concurrency: production

runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3

# For exoframe we need NodeJS
- name: Set up Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16

# We install exoframe
- name: Install exoframe
run: npm install -g exoframe

# And deploy using our secret token
- name: Deploy to production
run: |
exoframe deploy --token ${{ secrets.EXOFRAME_TOKEN }} --endpoint "https://exoframe.xf.mkrs.link" --update
5 changes: 5 additions & 0 deletions exoframe.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "simple_server",
"domain": "olivercullimore-simple-ci.xf.mkrs.link",
"port": "5000"
}

0 comments on commit a0c7fd1

Please sign in to comment.