don't like this, but let's try it #487
This file contains hidden or 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 | ||
|
Check failure on line 1 in .github/workflows/validate.yml
|
||
| 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 }} | ||