creamy-iron-91157
10/22/2022, 2:56 PMname: 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:
{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:
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?stocky-kangaroo-53672
10/24/2022, 9:31 AM