Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Update example usage #26

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# GitHub Action to Deploy Static Assets to GitHub Pages

[![Actions Status](https://wdp9fww0r9.execute-api.us-west-2.amazonaws.com/production/badge/maxheld83/ghpages)](https://github.com/maxheld83/ghpages/actions)
[![View Action](https://img.shields.io/badge/view-action-blue.svg)](https://github.com/marketplace/actions/github-pages-deploy)

<img src="https://github.com/maxheld83/ghpages/blob/master/action-running.gif?raw=true" align="right" width=200/>
Expand Down Expand Up @@ -54,11 +53,9 @@ None.
<img src="https://github.com/maxheld83/ghpages/blob/master/action-in-use.png?raw=true" align="right" width=200/>

```
action "Deploy to GitHub Pages" {
uses = "maxheld83/ghpages@v0.2.1"
env = {
BUILD_DIR = "public/"
}
secrets = ["GH_PAT"]
}
- name: Deploy to GitHub Pages
uses: maxheld83/ghpages@v0.2.1
if: success() && github.event == 'push' && github.ref == 'master'
env:
BUILD_DIR: 'public/'
```