No buckets to configure, no permissions to tweak. Deploy via GitHub action or cURL.
Your URL is ready as soon as we receive your build artifact. There's no waiting around for additional build or deployment steps!
All sites are served from our own infrastructure - you don't need your own cloud account or hosting.
on: [push]
jobs:
hello_world_job:
runs-on: ubuntu-latest
name: Deploy using GoStatic
steps:
- uses: actions/checkout@v2
- name: Deploy
id: deploy
uses: DigitalSVN/[email protected]
with:
api-token: ${{ secrets.GOSTATIC_API_TOKEN }}
source-dir: './example_output_directory'
- name: Output the deployment URL
run: echo "URL ${{ steps.deploy.outputs.url }}"
curl https://www.gostaticapp.com/api/deploy/artifact \
-X POST \
-H "Accept: application/json" \
-H "Authorization: Bearer your-api-token" \
-F "[email protected]"
{
"status": "ACTIVE",
"deployment_id": 1,
"url": "https://example-subdomain.gostatic.app",
"filesUploaded": [
{
"name": "index.html",
"sha1": "507a9a63f1b659c84a5a904955c9ba2670e0d4dd",
"size": 6726
},
{
"name": "style.css",
"sha1": "9ce12f353093f88cae70f3bf4437b3497260a850",
"size": 24
}
],
"filesRejected": []
}