Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push to production whenever main is updated #744

Merged
merged 1 commit into from
Jun 24, 2023
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
19 changes: 18 additions & 1 deletion .github/workflows/test.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Lint & Test
name: CI

on:
push:
branches: [main, 'feature.*']
pull_request:
types: [reopened]

Expand Down Expand Up @@ -39,3 +40,19 @@ jobs:
run: npm ci
- name: Lint
run: npm run lint:ci

release:
name: Deploy
runs-on: ubuntu-latest
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 }}

# Pushing to the production branch will trigger Netlify's release process.
- run: git push -f origin main:production