mirror of
https://github.com/danog/sass-site.git
synced 2024-11-30 04:29:17 +01:00
Don't run the release task until tests have passed (#745)
This commit is contained in:
parent
467243a0d8
commit
9fb50a9c9a
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@ -4,7 +4,6 @@ on:
|
||||
push:
|
||||
branches: [main, 'feature.*']
|
||||
pull_request:
|
||||
types: [reopened]
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
@ -44,15 +43,15 @@ jobs:
|
||||
release:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
if:
|
||||
github.event_name == 'push' &&
|
||||
github.ref == 'refs/heads/main' &&
|
||||
github.repository == 'sass/sass-site'
|
||||
needs: [test, lint]
|
||||
if: github.event_name == 'push' &&
|
||||
github.ref == 'refs/heads/main' &&
|
||||
github.repository == 'sass/sass-site'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN }}
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN }}
|
||||
|
||||
# Pushing to the production branch will trigger Netlify's release process.
|
||||
- run: git push -f origin main:production
|
||||
# Pushing to the production branch will trigger Netlify's release process.
|
||||
- run: git push -f origin main:production
|
||||
|
Loading…
Reference in New Issue
Block a user