Skip to content

Commit

Permalink
Merge pull request #18 from typescript-tutorial-exercises/dev
Browse files Browse the repository at this point in the history
chore: deploy from new repo
  • Loading branch information
ZLY201 authored Oct 29, 2023
2 parents 21af47e + d6241f8 commit b09e931
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ If yes, please describe the impact and migration path for existing applications:

**The PR fulfills these requirements:**

- [ ] It's submitted to the `dev` branch, **not** the `main` branch
- [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)

If adding a **new feature**, the PR's description includes:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ on:
- src/**
- rspack.config.ts
branches:
- dev
- main
schedule:
- cron: '28 17 * * 5'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/compressed-size.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- package.json
- yarn.lock
branches:
- dev
- main

concurrency:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: deploy

on:
workflow_dispatch:
push:
paths:
- config/**
Expand All @@ -11,6 +12,7 @@ on:
- package.json
- yarn.lock
branches:
- dev
- main

jobs:
Expand All @@ -24,7 +26,16 @@ jobs:
- name: Build
run: yarn build
- name: Deploy to github pages
if: ${{ github.ref == 'refs/heads/dev' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
branch: gh-pages
repository-name: typescript-tutorial-exercises/preview
- name: Deploy to github pages
if: ${{ github.ref == 'refs/heads/main' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
branch: gh-pages
repository-name: typescript-tutorial-exercises/typescript-tutorial-exercises.github.io
1 change: 1 addition & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: lint-code
on:
pull_request:
branches:
- dev
- main

concurrency:
Expand Down

0 comments on commit b09e931

Please sign in to comment.