Skip to content

gh-2024-04-04-225bc2673fd8b62540efb6d092d146d015dc534a #34

gh-2024-04-04-225bc2673fd8b62540efb6d092d146d015dc534a

gh-2024-04-04-225bc2673fd8b62540efb6d092d146d015dc534a #34

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: Clone Fonts
uses: actions/checkout@master
with:
repository: rust-adventure/fonts
path: fonts/
token: ${{ secrets.FONTS_ACCESS }}
- name: copy fonts
run: |
mkdir target/site/pp-neue-montreal/
cp $GITHUB_WORKSPACE/fonts/pp-neue-montreal/* target/site/pp-neue-montreal/
- name: Publish to Netlify
uses: netlify/actions/cli@master
with:
args: deploy --dir=target/site --prod
env:
NETLIFY_SITE_ID: 92571a12-b93f-4e77-bf4e-744c8ccec4e5
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/thisweekinbevy:${{github.event.release.name}}