-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e75b6c7
commit a1294e3
Showing
4 changed files
with
74 additions
and
61 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: Verify | ||
# ------------------------------------------------------------- | ||
# This workflow will build and verify pull requests. It will: | ||
# - Build the base branch and the PR branch | ||
# - Compare the compiled output of the two branches | ||
# - Run visual regression tests on the PR branch | ||
# - Publish the PR branch for review | ||
# ------------------------------------------------------------- | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- opened | ||
- synchronize | ||
- reopened | ||
- auto_merge_enabled | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
# ------------------------------------------------------------- | ||
# PUBLISH PR PREVIEW --- # | ||
# ------------------------------------------------------------- | ||
publish_site: | ||
name: Publish preview | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use Node LTS version | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
shell: bash | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Build site | ||
shell: bash | ||
run: yarn site | ||
|
||
## --- DEPLOY WEBSITE TO NETLIFY --- ## | ||
- name: Deploy | ||
uses: nwtgck/actions-netlify@v3 | ||
with: | ||
publish-dir: dist | ||
production-branch: main | ||
production-deploy: false | ||
netlify-config-path: ./netlify.toml | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
deploy-message: ${{ github.event.pull_request.title }} | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN_GH_ACTIONS_DEPLOY }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
timeout-minutes: 10 |
This file contains 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
This file contains 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
a1294e3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://spectrum-workflow-icons.netlify.app as production
🚀 Deployed on https://6657a6eb6690d54e94cfba7c--spectrum-workflow-icons.netlify.app