Last active
July 5, 2020 10:21
-
-
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/
This file contains 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: 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