Live in seconds, just send us your output files, we do the rest!
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. No waiting around for additional 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/GoStatic@v1.0
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 "file=@file.zip"
{
"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": []
}