Skip to content

Instantly share code, notes, and snippets.

@beeman
Last active July 5, 2020 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beeman/e8c56d6ec3339448be5ad167c10583f3 to your computer and use it in GitHub Desktop.
Save beeman/e8c56d6ec3339448be5ad167c10583f3 to your computer and use it in GitHub Desktop.
Example Github Actions Workflow file from this post https://beeman.dev/posts/automate-your-dev-posts-using-github-actions-4hp3/
name: Build
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Install Dependencies
uses: bahmutov/npm-install@v1
- name: Run Prettier
run: yarn run prettier:check
- name: Run Embedme
run: yarn run embedme:check
- name: Deploy to dev.to
run: DEV_TO_GIT_TOKEN=${{ secrets.DEV_TO_GIT_TOKEN }} yarn run dev-to-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment