Update workflows
This commit is contained in:
parent
7efbbc7803
commit
361e8038b1
1
.github/workflows/dev.yml
vendored
1
.github/workflows/dev.yml
vendored
|
@ -12,7 +12,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
# https://github.com/actions/checkout
|
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
-
|
-
|
||||||
|
|
2
.github/workflows/labels.yml
vendored
2
.github/workflows/labels.yml
vendored
|
@ -13,11 +13,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
# https://github.com/actions/checkout
|
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
-
|
-
|
||||||
# https://github.com/crazy-max/ghaction-github-labeler
|
|
||||||
name: Run Labeler
|
name: Run Labeler
|
||||||
if: success()
|
if: success()
|
||||||
uses: crazy-max/ghaction-github-labeler@v2
|
uses: crazy-max/ghaction-github-labeler@v2
|
||||||
|
|
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
@ -11,11 +11,9 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
# https://github.com/actions/checkout
|
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
-
|
-
|
||||||
# https://github.com/actions/setup-node
|
|
||||||
name: Set up Node
|
name: Set up Node
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
-
|
-
|
||||||
|
|
|
@ -61,7 +61,7 @@ jobs:
|
||||||
-
|
-
|
||||||
name: Deploy to GitHub Pages
|
name: Deploy to GitHub Pages
|
||||||
if: success()
|
if: success()
|
||||||
uses: crazy-max/ghaction-github-pages@v1
|
uses: crazy-max/ghaction-github-pages@v2
|
||||||
with:
|
with:
|
||||||
target_branch: gh-pages
|
target_branch: gh-pages
|
||||||
build_dir: public
|
build_dir: public
|
||||||
|
@ -86,7 +86,7 @@ You can use the [Import GPG](https://github.com/crazy-max/ghaction-import-gpg) G
|
||||||
-
|
-
|
||||||
name: Deploy to GitHub Pages
|
name: Deploy to GitHub Pages
|
||||||
if: success()
|
if: success()
|
||||||
uses: crazy-max/ghaction-github-pages@v1
|
uses: crazy-max/ghaction-github-pages@v2
|
||||||
with:
|
with:
|
||||||
target_branch: gh-pages
|
target_branch: gh-pages
|
||||||
build_dir: public
|
build_dir: public
|
||||||
|
|
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
|
@ -1855,7 +1855,7 @@ function run() {
|
||||||
}
|
}
|
||||||
yield git.push(remoteURL, targetBranch, !keepHistory);
|
yield git.push(remoteURL, targetBranch, !keepHistory);
|
||||||
process.chdir(currentdir);
|
process.chdir(currentdir);
|
||||||
core.info(`🎉 Content of ${buildDir} has been deployed to GitHub Pages.`);
|
core.info(`🎉 Content of ${buildDir} has been deployed to GitHub Pages`);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
|
|
@ -101,7 +101,7 @@ async function run() {
|
||||||
await git.push(remoteURL, targetBranch, !keepHistory);
|
await git.push(remoteURL, targetBranch, !keepHistory);
|
||||||
|
|
||||||
process.chdir(currentdir);
|
process.chdir(currentdir);
|
||||||
core.info(`🎉 Content of ${buildDir} has been deployed to GitHub Pages.`);
|
core.info(`🎉 Content of ${buildDir} has been deployed to GitHub Pages`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user