name: Build & Deploy
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 13.x
- run: npm ci
- run: npm run build
- run: npm test
env:
CI: true
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: qoomon/deploy-to-github-pages-action@v1
with:
GITHUB_PAGES_SOURCE_DIR: dist # default value: dist
GITHUB_PAGES_BRANCH: gh-pages # default value: gh-pages
GITHUB_PAGES_REPLACE: false # default value: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.
generated from actions/container-action
-
Notifications
You must be signed in to change notification settings - Fork 1
GitHub Action to Publish Directory to GitHub Pages
License
qoomon/actions--publish-to-github-pages
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use this GitHub action with your project
Add this Action to an existing workflow or create a new oneFolders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
GitHub Action to Publish Directory to GitHub Pages
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published