Skip to content

don't like this, but let's try it #487

don't like this, but let's try it

don't like this, but let's try it #487

Workflow file for this run

name: deploy

Check failure on line 1 in .github/workflows/validate.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/validate.yml

Invalid workflow file

(Line: 43, Col: 16): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.os == 'windows-latest' && 'cmd' || 'bash', (Line: 48, Col: 16): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.os == 'windows-latest' && 'cmd' || 'bash', (Line: 53, Col: 16): Unrecognized named-value: 'matrix'. Located at position 1 within expression: matrix.os == 'windows-latest' && 'cmd' || 'bash'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
jobs:
setup:
name: 🔧 Setup
timeout-minutes: 20
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: ⎔ Setup node
uses: actions/setup-node@v4
with:
node-version: 24
- name: 🔧 Configure git for Windows
if: matrix.os == 'windows-latest'
shell: cmd
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: 🧹 Clear npm cache
if: matrix.os == 'windows-latest'
shell: cmd
run: |
npm cache clean --force
npm cache verify
- name: ▶️ Add repo
shell: ${{ matrix.os == 'windows-latest' && 'cmd' || 'bash' }}
run: |
npx --yes epicshop@latest add ${{ github.event.repository.name }} ./workshop
- name: ʦ TypeScript
shell: ${{ matrix.os == 'windows-latest' && 'cmd' || 'bash' }}
run: npm run typecheck
working-directory: ./workshop
- name: ⬣ ESLint
shell: ${{ matrix.os == 'windows-latest' && 'cmd' || 'bash' }}
run: npm run lint
working-directory: ./workshop
deploy:
name: 🚀 Deploy
timeout-minutes: 10
runs-on: ubuntu-latest
# only deploy main branch on pushes
if: ${{ github.ref == 'refs/heads/main' && github.event_name == 'push' }}
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🎈 Setup Fly
uses: superfly/flyctl-actions/[email protected]
- name: 🚀 Deploy
run: flyctl deploy --remote-only
working-directory: ./epicshop
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}