Upgrade fission-codes/publish-action #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to production | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Install nix | |
uses: cachix/install-nix-action@v18 | |
- name: Cache elm home | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-elm-home | |
with: | |
path: ~/.elm | |
key: ${{ runner.os }}-elm-home-${{ hashFiles('**/elm.json') }} | |
- name: Install Dependencies | |
run: nix-shell --run "just install-deps" | |
- name: Build | |
run: nix-shell --run "just production-build" | |
- name: Publish to Fission | |
uses: fission-codes/[email protected] | |
with: | |
machine_key: ${{ secrets.FISSION_PRODUCTION_KEY }} | |
build_dir: ./build | |
app_url: lobby.fission.app |