Skip to content

Upgrade GH release action (#32) #202

Upgrade GH release action (#32)

Upgrade GH release action (#32) #202

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
tags:
- v*
workflow_dispatch:
env:
NODE_VERSION: ${{ vars.NODE_VERSION }}
jobs:
version:
uses: ./.github/workflows/version.yml
check:
uses: ./.github/workflows/check.yml
secrets: inherit
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: check
steps:
- uses: softprops/action-gh-release@v2
permissions:
contents: write
deploy:
runs-on: ubuntu-latest
environment:
name: production
url: https://cashfolio.app
needs: [check, version]
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
with:
version: 0.1.117
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm version ${{ needs.version.outputs.version }} --git-tag-version false
- run: flyctl deploy --remote-only --image-label v${{ needs.version.outputs.version }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}