-
Notifications
You must be signed in to change notification settings - Fork 75
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
Showing
20 changed files
with
13,409 additions
and
28 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,41 @@ | ||
name: gh-page | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: packages/example | ||
|
||
jobs: | ||
publish-example-site: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
# Проверяем изменилась ли версия | ||
- name: Set NEED_PUBLISH | ||
run: echo "NEED_PUBLISH=$(./need-publish.sh)" >> $GITHUB_ENV | ||
|
||
- name: Install and Build - ⌛&🏗️ | ||
if: ${{ env.NEED_PUBLISH }} | ||
run: | | ||
npm ci | ||
npm run build | ||
- name: Deploy 🚀.🚀.🚀 | ||
if: ${{ env.NEED_PUBLISH }} | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: packages/example/dist # The folder the action should deploy. | ||
CLEAN: true |
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,6 @@ | ||
node_modules | ||
.DS_Store | ||
dist | ||
*.local | ||
!package-lock.json | ||
yarn.lock |
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,18 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="icon" href="./favicon.ico" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>vue-sweetalert2 example</title> | ||
</head> | ||
<body> | ||
<noscript> | ||
<strong>We're sorry but vue-sweetalert2-example doesn't work properly without JavaScript enabled. Please enable it to | ||
continue.</strong> | ||
</noscript> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.js"></script> | ||
</body> | ||
</html> |
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,14 @@ | ||
#!/bin/bash | ||
|
||
# PKG=$(node -p -e "require('./package.json').name") | ||
PKG="vue-sweetalert2" | ||
|
||
# we get the version of the package in a branch | ||
CURRENT_VERSION=$(node -p -e "require('./package.json').version") | ||
PUBLIC_VERSION=$(npm show ${PKG} version) | ||
|
||
|
||
if [[ $CURRENT_VERSION != $PUBLIC_VERSION ]]; | ||
then | ||
echo 'TRUE'; | ||
fi |
Oops, something went wrong.