Skip to content

Commit

Permalink
Merge pull request #78 from adamreese/add-deployment-token
Browse files Browse the repository at this point in the history
Add deployment token to github action
  • Loading branch information
adamreese authored Aug 24, 2023
2 parents a140e03 + e2c7f75 commit b6770e5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ jobs:
version: v1.4.1

- name: Login to Fermyon Cloud
run: spin cloud login --token "${{ secrets.FERMYAPPS_CLOUD_TOKEN }}"
run: spin cloud login --token "${{ secrets.FERMYON_CLOUD_TOKEN }}"

- name: Deploy to Fermyon Cloud
uses: fermyon/actions/spin/deploy@v1
with:
run_build: false
fermyon_token: "${{ secrets.FERMYON_CLOUD_TOKEN }}"

- name: Run sqlite migration(s)
run: |
# NOTE: workaround for not being able to use 'default' as the database name
SQLITE_DB_NAME="$(spin cloud sqlite list | grep 'default' | cut -d ' ' -f1)"
spin cloud sqlite execute "$SQLITE_DB_NAME" "@highscore/migration.sql"
- name: Deploy to Fermyon Cloud
uses: fermyon/actions/spin/deploy@v1
with:
run_build: false
fermyon_token: "${{ secrets.FERMYAPPS_CLOUD_TOKEN }}"

0 comments on commit b6770e5

Please sign in to comment.