Skip to content

Commit

Permalink
Merge pull request #20 from jphacks/CI-change-main
Browse files Browse the repository at this point in the history
CIをmainに変更
  • Loading branch information
yuto-trd authored Oct 26, 2024
2 parents 2432f02 + 806653c commit d3c3149
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ on: push

jobs:
preview:
if: ${{ github.ref != 'refs/heads/release' }}
needs: test
if: ${{ github.ref != 'refs/heads/main' }}
runs-on: ubuntu-latest
environment:
name: preview
Expand Down Expand Up @@ -46,8 +45,7 @@ jobs:
run: vercel alias ${{ steps.deploy.outputs.url }} stg.my-service.com --scope=my-team --token=${{ secrets.VERCEL_TOKEN }}

prod:
if: ${{ github.ref == 'refs/heads/release' }}
needs: test
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit d3c3149

Please sign in to comment.