how to install doctl in a github action

Oct 30, 2023
      - name: install dependencies
        run: |
          # install doctl
          wget -q
          tar xf ./doctl-1.100.0-linux-amd64.tar.gz
          sudo mv ./doctl /usr/local/bin
          doctl auth init -t "$DO_API_TOKEN"
          DO_API_TOKEN: ${{ secrets.DIGITAL_OCEAN_API_TOKEN }}

To add the secrets to your repository, go to settings -> secrets and variables -> actions. The URL is<user>/<repo>/settings/secrets/actions

See also how to install s3cmd for digital ocean storage uploads

↑ up