Merge pull request #62 from cloudnativerioja/fix/kubefest-date #63
This file contains hidden or 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
name: Construir y desplegar | |
on: | |
push: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/actions/checkout | |
- uses: actions/checkout@v3 | |
# a standard step for GitHub actions on Node | |
# https://github.com/actions/setup-node | |
- uses: actions/setup-node@v3 | |
with: | |
# update the Node version to meet your needs | |
node-version: 16 | |
cache: npm | |
# In export script, we use `next export` to generate static HTML files in the out directory. | |
- name: Install dependencies and build | |
run: | | |
if [ -e yarn.lock ]; then | |
yarn install --frozen-lockfile | |
elif [ -e package-lock.json ]; then | |
npm ci | |
else | |
npm i | |
fi | |
npm run build | |
npm run export | |
touch out/.nojekyll | |
- name: Deploy | |
# https://github.com/JamesIves/github-pages-deploy-action | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: out | |
- name: Bump version and push tag | |
uses: anothrNick/[email protected] # Don't use @master unless you're happy to test the latest version | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} | |
WITH_V: false | |
DEFAULT_BUMP: patch |