https://linen.dev logo
Github Action to deploy serenity bot?
# help
c
I am having trouble with a deploy action, maybe some have had better luck than me. Currently using the following action:
Copy code
name: Shuttle deploy

on:
  push:
    branches:
      - "main"

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Add secrets
        run: echo 'DISCORD_TOKEN="${{ secrets.DISCORD_BOT_TOKEN }}"' >> Secrets.toml

      - name: Deploy to shuttle
        uses: shuttle-hq/deploy-action@main
        with:
          deploy-key: ${{ secrets.SHUTTLE_DEPLOY_KEY }}
          allow-dirty: "true"
But as can see here: https://github.com/casperstorm/discord-bot-einar/actions/runs/3303582753/jobs/5451670875 - it fails with:
Copy code
{error="Run error: Custom error: 'DISCORD_TOKEN' was not found in Secrets.toml"}
From the deploy step i can see it should add the file, and the content:
Copy code
echo 'DISCORD_TOKEN="***"' >> Secrets.toml
Also, manually (locally) adding a
Secrets.toml
and running
cargo shuttle run
works just fine: https://github.com/casperstorm/discord-bot-einar/blob/main/src/lib.rs#L103-L107 Anyone have an idea, or a github action to point me to?
k
I believe this may be caused by this: . A fix has been merged for this, but not released yet. It will likely be released on Monday.
s
Release just dropped 🥳