name: CD Host on: schedule: - cron: '0 */5 * * *' workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: host: runs-on: ubuntu-latest steps: - name: Use node uses: actions/setup-node@v2 with: node-version: 18 - name: Download release assets run: | DOWNLOAD_URL=$(curl -s https://api.github.com/repos/tresabhi/blitzkrieg/releases/latest \ | grep "browser_download_url.*dist.zip" \ | cut -d : -f 2,3 \ | tr -d \") curl -L -o dist.zip $DOWNLOAD_URL unzip dist.zip - name: Run bot run: NODE_ENV=production GH_TOKEN=${{ secrets.GH_TOKEN }} DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }} WARGAMING_APPLICATION_ID=${{ secrets.WARGAMING_APPLICATION_ID }} node --enable-source-maps --trace-warnings bot.cjs