Update workflows

This commit is contained in:
CrazyMax 2020-05-06 20:54:24 +02:00
parent 071043bf3d
commit f59aa1409d
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
5 changed files with 9 additions and 11 deletions

View File

@ -12,11 +12,7 @@ jobs:
-
# https://github.com/actions/checkout
name: Checkout
uses: actions/checkout@v1
-
# https://github.com/actions/checkout/issues/6
name: Fix detached HEAD
run: git checkout ${GITHUB_REF#refs/heads/}
uses: actions/checkout@v2
-
name: Build
run: |

View File

@ -15,7 +15,7 @@ jobs:
-
# https://github.com/actions/checkout
name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
-
# https://github.com/crazy-max/ghaction-github-labeler
name: Run Labeler

View File

@ -13,7 +13,7 @@ jobs:
-
# https://github.com/actions/checkout
name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
-
# https://github.com/actions/setup-node
name: Set up Node

View File

@ -11,7 +11,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
-
name: Build
run: |

View File

@ -12,7 +12,7 @@ If you are interested, [check out](https://git.io/Je09Y) my other :octocat: GitH
## Usage
Below is a simple snippet to deploy to GitHub Pages. A [test workflow](https://github.com/crazy-max/ghaction-github-pages/actions?query=workflow%3Atest) is also available for this repository and deploys to GitHub pages at https://crazy-max.github.io/ghaction-github-pages/.
Below is a simple snippet to deploy to GitHub Pages:
```yaml
name: website
@ -25,7 +25,7 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v1
uses: actions/checkout@v2
-
name: Build
run: |
@ -42,7 +42,7 @@ jobs:
</html>
EOL
-
name: Deploy
name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v1
with:
@ -52,6 +52,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
A [test workflow](https://github.com/crazy-max/ghaction-github-pages/actions?query=workflow%3Atest) is also available for this repository and deploys to GitHub pages at https://crazy-max.github.io/ghaction-github-pages/.
## Customizing
### inputs