-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated deploys via workflows (#16)
* setup workflow yml for static site * configure possible workflows for dmX * 3 workflows set up for dmX * remove preview when pr not merged + don't force push
- Loading branch information
1 parent
e786c89
commit 86328a3
Showing
3 changed files
with
75 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Release version of dmX in GitHub Pages | ||
on: | ||
push: | ||
branches: [release] | ||
|
||
permissions: | ||
contents: write | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: . | ||
clean-exclude: | | ||
pr-preview/ | ||
main/ | ||
target-folder: release/ |
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,30 @@ | ||
name: Deploy PR previews to GitHub Pages | ||
concurrency: preview-${{ github.ref }} | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- closed | ||
permissions: | ||
contents: write | ||
jobs: | ||
deploy-preview: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: rossjrw/pr-preview-action@v1 | ||
if: contains(['opened', 'reopened', 'synchronize'], ${{ github.event.action }}) | ||
with: | ||
source-dir: . | ||
preview-branch: gh-pages | ||
umbrella-dir: pr-preview | ||
action: auto | ||
- uses: rossjrw/pr-preview-action@v1 | ||
if: github.event.action == 'closed' && !github.event.pull_request.merged | ||
with: | ||
source-dir: . | ||
preview-branch: gh-pages | ||
umbrella-dir: pr-preview | ||
action: remove |
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,23 @@ | ||
name: Deploy dmX to GitHub Pages | ||
on: | ||
push: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: write | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: . | ||
clean-exclude: | | ||
pr-preview/ | ||
beta/ | ||
target-folder: main/ | ||
force: false |