Giter Site home page Giter Site logo

reusable-workflows's Introduction

reusable-workflows

Experimenting with reusable workflows (official docs)

WIP - use at your own risk ๐Ÿ˜…

Workflows

Dependabot Auto-merge

Runs against Dependabot PRs and performs a rebase merge if:

  • PR is for a minor release of a dev dependency
  • PR is for a patch release of any dependency

Example usage:

name: ๐Ÿค– Dependabot auto-merge

on: [pull_request]

permissions:
  contents: write
  pull-requests: write

jobs:
  call-auto-merge-workflow:
    if: ${{ github.actor == 'dependabot[bot]' }}
    uses: mikesprague/reusable-workflows/.github/workflows/dependabot-auto-merge.yml@main
    secrets:
      TOKEN: ${{ secrets.GITHUB_TOKEN}}

Deploy to GitHub Pages

Deploys a folder (or file) to GitHub Pages, requires a build artifact reference to deploy

Example step to build artifact (this step should be at end of a build job):

    - name: ๐Ÿ“ฆ Create and upload build artifact
      uses: actions/upload-artifact@v3
      with:
        name: build-artifact
        path: 'dist/'
        retention-days: 1

Example usage (build job steps not included in example):

name: Deploy

on:
  push:
    branches:
      - "main"

permissions:
  contents: read
  pages: write
  id-token: write

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  build:
    - your existing
    - build steps
    # create build artifact for reusable workflow
    - name: ๐Ÿ“ฆ Create and upload build artifact
      uses: actions/upload-artifact@v3
      with:
        name: build-artifact
        path: 'dist/'
        retention-days: 1

  call-deploy-workflow:
    needs: [build]
    uses: mikesprague/reusable-workflows/.github/workflows/pages-deploy.yml@main
    secrets:
      REPO_TOKEN: ${{ secrets.GITHUB_TOKEN}}
    with:
      artifact-name: build-artifact

Deploy to Fly.io

... documentation in progress ...

Run Lighthouse Report

... documentation in progress ...

reusable-workflows's People

Contributors

mikesprague avatar dependabot[bot] avatar

Stargazers

Roman avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.