Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: Deployment Pipeline
on:
# push:
# branches:
# - part11-ci-cd-systems

pull_request:
branches: [part11-ci-cd-systems]
types: [opened, synchronize]

push:
branches:
- part11-ci-cd-systems
jobs:
simple_deployment_pipeline:
runs-on: ubuntu-24.04
Expand All @@ -21,7 +20,7 @@ jobs:
node-version: '20'

- name: Install Dependencies
run: npm install
run: npm ci
working-directory: part11

- name: Check style
Expand Down Expand Up @@ -50,8 +49,13 @@ jobs:
path: playwright-report/
retention-days: 7

- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only -a pokedex-app-6035
- name: Setup flyctl
if: ${{ github.event_name == 'push' }}
uses: superfly/flyctl-actions/setup-flyctl@master

- name: Deploy to Fly.io
if: ${{ github.event_name == 'push' }}
run: flyctl deploy --remote-only -a pokedex-app-6035
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
working-directory: part11
Loading