This action enables you to manage Apps in the DigitalOcean App Platform services by installing the appfile
command-line client.
To install the latest version of appfile
and use it in GitHub Actions workflows, add the following step:
- name: Install appfile
uses: renehernandez/action-appfile@v0.0.1
appfile
will now be available in the virtual environment and can be used directly in the following steps. You will need a DigitalOcean personal access token to execute appfile commands. As an example, one common use case is syncing an App platform specification to create a review environment for your branch:
- name: Deploy App in review environment
env:
DIGITALOCEAN_ACCESS_TOKEN: {{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
run: appfile -f ./do/appfile.yaml -e review sync
version
– (Optional) The version ofappfile
to install. If excluded, the latest release will be used.
To install the needed dependencies, run npm install
. The resulting node_modules/
directory is not checked in to Git.
Before submitting a pull request, run npm run package
to package the code using ncc
. Packaging assembles the code including dependencies into one file in the dist/
directory that is checked in to Git.
Pull requests should be made against the main
branch. (it will switch to v1
branch once it is stable)
This GitHub Action and associated scripts and documentation in this project are released under the MIT License.