Skip to content

gh-2024-09-28-76b6c62bd588ec49ad348a69ac9699eb6b9b0746 #14

gh-2024-09-28-76b6c62bd588ec49ad348a69ac9699eb6b9b0746

gh-2024-09-28-76b6c62bd588ec49ad348a69ac9699eb6b9b0746 #14

Workflow file for this run

name: Deploy to Production
on:
release:
# type: released
# A release was published, or a pre-release was changed to a release.
types: [released]
# repository_dispatch:
# types: [deploy]
jobs:
deploy:
name: Deploy to Fly.io and Netlify
runs-on: ubuntu-latest
steps:
- uses: superfly/flyctl-actions/setup-flyctl@master
- uses: dsaltares/fetch-gh-release-asset@master
with:
file: "static-assets.tar.gz"
- name: Un-tar static assets
run: tar -xzvf static-assets.tar.gz
- name: Publish to Netlify
uses: netlify/actions/cli@master
with:
# args: deploy --dir=target/site --prod
# temporarily use preview deploy and alias
args: deploy --dir=target/site --alias wasm-cdn
env:
NETLIFY_SITE_ID: b635e6d9-900c-4c21-993d-11191073ff32
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
- uses: dsaltares/fetch-gh-release-asset@master
with:
file: "fly.toml"
- run: flyctl deploy --image $IMAGE_LABEL
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
IMAGE_LABEL: registry.fly.io/christopherbiscardi:${{github.event.release.name}}