All Projects → jeoy → github-deploy-actions

jeoy / github-deploy-actions

Licence: other
This action will auto deploy to target branch when it get triggered

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
shell
77523 projects
CSS
56736 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to github-deploy-actions

Github Pages Deploy Action
Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.
Stars: ✭ 2,507 (+10345.83%)
Mutual labels:  deployer, gh-pages, github-actions, github-action
action-github-workflow-sync
Github Action To Sync Github Action's Workflow Files Across Repositories
Stars: ✭ 51 (+112.5%)
Mutual labels:  github-actions, github-action
Github-Android-Action
Android Github Action that builds Android project, runs unit tests and generates debug APK, builds for Github Actions hackathon
Stars: ✭ 29 (+20.83%)
Mutual labels:  github-actions, github-action
setup-bats
GitHub Action to setup BATS testing framework
Stars: ✭ 25 (+4.17%)
Mutual labels:  github-actions, github-action
sentry-releases-action
A GitHub action that creates releases for Sentry.io.
Stars: ✭ 38 (+58.33%)
Mutual labels:  github-actions, github-action
clang-format-action
GitHub Action for clang-format checking
Stars: ✭ 48 (+100%)
Mutual labels:  github-actions, github-action
recent-activity
Add your recent activity to your profile readme!
Stars: ✭ 87 (+262.5%)
Mutual labels:  github-actions, github-action
angular-forum
Forum application built with Angular
Stars: ✭ 52 (+116.67%)
Mutual labels:  gh-pages, github-actions
changed-files
Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.
Stars: ✭ 733 (+2954.17%)
Mutual labels:  github-actions, github-action
action-netlify-deploy
🙌 Netlify deployments via GitHub actions
Stars: ✭ 32 (+33.33%)
Mutual labels:  github-actions, github-action
setup-jdk
(DEPRECATED) Set up your GitHub Actions workflow with a specific version of AdoptOpenJDK
Stars: ✭ 32 (+33.33%)
Mutual labels:  github-actions, github-action
action-setup-kube-tools
Github Action that setup Kubernetes tools (kubectl, kustomize, helm, kubeconform, conftest, yq, rancher, tilt, skaffold) very fast and cache them on the runner. Please [✩Star] if you're using it!
Stars: ✭ 45 (+87.5%)
Mutual labels:  github-actions, github-action
googlejavaformat-action
GitHub Action that formats Java files following Google Style guidelines
Stars: ✭ 66 (+175%)
Mutual labels:  github-actions, github-action
restrict-cursing-action
Github Action to prevent cursing and bad language in issues and pull requests
Stars: ✭ 20 (-16.67%)
Mutual labels:  github-actions, github-action
gh-pages-action
A GitHub Action to deploy a static site on GitHub Pages.
Stars: ✭ 26 (+8.33%)
Mutual labels:  gh-pages, github-actions
GitHub-Pages-deploy
A GitHub Action to deploy a static site on GitHub Pages.
Stars: ✭ 42 (+75%)
Mutual labels:  gh-pages, github-actions
build-godot-action
GitHub action that builds a Godot project for multiple platforms
Stars: ✭ 62 (+158.33%)
Mutual labels:  github-actions, github-action
github-run-tests-action
mabl Github Actions implementation
Stars: ✭ 39 (+62.5%)
Mutual labels:  github-actions, github-action
slsa-provenance-action
Github Action implementation of SLSA Provenance Generation
Stars: ✭ 34 (+41.67%)
Mutual labels:  github-actions, github-action
clojure-dependency-update-action
A simple GitHub Actions job to create Pull Requests for outdated dependencies in clojure projects
Stars: ✭ 37 (+54.17%)
Mutual labels:  github-actions, github-action

Github-deploy-actions

This action will auto build and deploy to target branch when it get triggered.

Also it can preserve the history of gh-pages and convenient for rolling back to previous version.

And it will compare deployment file to previous version by using git status --porcelain, it will not to deploy if nothing change.

How to Use

name: deploy

on:
    push:
        branches:
            - master

jobs:
    build-and-deploy:
        runs-on: ubuntu-latest
        steps:
            - name: Checkout
              uses: actions/checkout@master

            - name: Build and Deploy
              uses: ./.github/actions/deploy
              env:
                  COMMIT_EMAIL: [email protected]
                  COMMIT_NAME: jeoy
                  ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
                  BASE_BRANCH: master
                  DEPLOY_BRANCH: gh-pages
                  BUILD_SCRIPT: yarn && yarn build
                  FOLDER: build

Environment variable

param description required default
COMMIT_NAME The name who commit this deployment false ${GITHUB_ACTOR}
COMMIT_EMAIL The email who commit this deployment true -
ACCESS_TOKEN github token can acess repo true -
BASE_BRANCH The branch you want to build false master
DEPLOY_BRANCH The branch you want to deploy false gh-pages
BUILD_SCRIPT e.g. npm install && npm run build true -
FOLDER The folder generated by build script true -

How It Works

When push to master branch

This Action will run yarn && yarn build

Then push build folder as a new commit on gh-pages branch

note: mark sure build folder is on your gitignore list

deploy page:

gh-pages demo

what exactly is done during the action

checkout this entrypoint.sh

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].